Commit 81e2dfc4 authored by Angel Matilla's avatar Angel Matilla
Browse files

added selector for forms 5

parent 9629f483
......@@ -197,15 +197,17 @@ class GEN_EU_Registration_Dashboard {
foreach ( Gen_EU_Form_Parameters::FORM_PICKER as $slug => $form ) {
echo '<option value="' . esc_attr( $slug ) . '">' . esc_html( $form['label'] ) . '</option>';
}
echo '</select></form><hr>';
echo '</select>';
$this->error_list = new WP_Error();
echo '<input type="submit" name="submit" value="Load form" />';
echo '</form>';
echo '<h2>' . $_POST['form-id'] . "</h2><hr>";
$this->error_list = new WP_Error();
if(isset($_POST['form-id'])){
$this->form_id = $_POST['form-id'];
$data_source = $this->form_id;
echo "You have selected :" .$data_source ; // Displaying Selected Value
}
else{
$data_source = GEN_EU_Caldera_Forms_Data_Collector::get_instance( GEN_EU_Form_Parameters::ID );
......
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