Commit e0ffcca6 authored by Angel Matilla's avatar Angel Matilla
Browse files

added selector for forms 9

parent bc628471
......@@ -189,10 +189,12 @@ class GEN_EU_Registration_Dashboard {
if(isset($_POST['form-id'])){
$this->form_id = $_POST['form-id'];
$data_source = GEN_EU_Caldera_Forms_Data_Collector::get_instance($this->form_id);
echo "You have selected :" .Gen_EU_Form_Parameters::FORM_PICKER[$this->form_id]['label'] ; // Displaying Selected Value
echo "<hr><h2>" .Gen_EU_Form_Parameters::FORM_PICKER[$this->form_id]['label'] . "</h2>"; // Displaying Selected Value
echo '<hr>';
}
else{
echo "<hr><h2>" .Gen_EU_Form_Parameters::FORM_PICKER[GEN_EU_Form_Parameters::ID]['label'] . "</h2>"; // Displaying Selected Value
echo '<hr>';
$data_source = GEN_EU_Caldera_Forms_Data_Collector::get_instance( GEN_EU_Form_Parameters::ID );
}
$dashboard = GEN_EU_Dashboard_Loader::get_instance( $data_source ); // get instance of a singleton.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment