Hello,
I'm using a multiple dropdown for my form.
At the third dropdown there's the following custom code:
Now here's my struggle,
If the first option is the right one, nobody clicks on it.
And after form submit, the value isn't selected, so it won't save that value in my database.
What can i do about that.
Theon
I'm using a multiple dropdown for my form.
At the third dropdown there's the following custom code:
<?php
$options = array();
if ( !$form->data['Data'] || count($form->data['Data']) < 1 ) {
// no result was found
$options[] = '0';
}
else {
foreach ( $form->data['Data'] as $d )
{
$options[$d['naam']] = $d['tm'];
}
}
echo json_encode($options);
?>
Now here's my struggle,
If the first option is the right one, nobody clicks on it.
And after form submit, the value isn't selected, so it won't save that value in my database.
What can i do about that.
Theon