Commit 0d673a3c authored by Angel Matilla's avatar Angel Matilla
Browse files

added selector for forms 3

parent 2af1558e
......@@ -181,12 +181,17 @@ class GEN_EU_Registration_Dashboard {
}
echo '</select></form><hr>';
$this->form_id = $_POST['form-id'];
echo '<h2>' . $this->form_id . "</h2>";
$this->error_list = new WP_Error();
//$data_source = GEN_EU_Caldera_Forms_Data_Collector::get_instance( GEN_EU_Form_Parameters::ID );
$data_source = $this->form_id;
if(isset($_POST['form-id'])){
$this->form_id = $_POST['form-id'];
$data_source = $this->form_id;
}
else{
$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.
GEN_EU_Dashboard_Viewer::display_dashboard( $dashboard );
}
......
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