Managed to create a dynamic dropdown.
First dropdown consist of days of the week. Second dropdown consists of available times on that day.
Example dynamic dropdown:
And so on for every day of the week.
Added in On Submit:
Show Thanks message
Custom code:
Handle arrays
Email:
Related code in email:
Result in email is still corresponding number instead of text.
I am definitely missing something, but can't figure out what it is.
First dropdown consist of days of the week. Second dropdown consists of available times on that day.
Example dynamic dropdown:
monday: 1= between 13.00 and 15.00,2=between 15.00 and 17.00
And so on for every day of the week.
Added in On Submit:
Show Thanks message
Custom code:
<?php
$tijd_array = array(
1 => 'between 13.00 and 15.00',
2 => 'between 15.00 and 17.00',
3 => 'between 10.00 and 12.00',
4 => 'between 12.00 and 14.00',
5 => 'between 14.00 and 16.00',
6 => 'tbetween 16.00 and 18.00',
7 => 'between 18.00 and 21.00',
8 => 'between 10.00 and 12.00'
);
$form->data['tijd_name'] = $tijd_array[$form->data['tijd']];
?>
Handle arrays
Email:
Related code in email:
<tr>
<td><strong> en tijd</strong></td>
<td>{tijd_name}</td>
</tr>
Result in email is still corresponding number instead of text.
I am definitely missing something, but can't figure out what it is.