Hello KK,
I have a problem I want you to help me with.
In my clonable template, I have multiple checkboxes editable field for booked_times (from 06:00 - 16:00). Now on the front-end, I have a dbf form which uses <db_persist /> to check multiple times:
The checkboxes at the backend
The dbf on front-end
My issue is that how do I uncheck multiple times using <cms:db_persist /> at the front-end. I tried this but it is not working. NB: I added '-' .
I have a problem I want you to help me with.
In my clonable template, I have multiple checkboxes editable field for booked_times (from 06:00 - 16:00). Now on the front-end, I have a dbf form which uses <db_persist /> to check multiple times:
The checkboxes at the backend
- Code: Select all
<cms:editable name="booked_times" label="Booked times (24 Hrs)"
opt_values=' 05:30 | 06:00 | 06:30 | 07:00 | 07:30 |
08:00 | 08:30 | 09:00 | 09:30 | 10:00 | 10:30 | 11:00 | 11:30 |
12:00 | 12:30 | 13:00 | 13:30 | 14:00 | 14:30 | 15:00 | 15:30 |
16:00 | 16:30 | 17:00 | 17:30 '
type='checkbox'
order='200'
/>
The dbf on front-end
- Code: Select all
<cms:db_persist
_masterpage=k_template_name
_mode='edit'
_page_id=k_page_id
_invalidate_cache='0'
booked_times = "<cms:concat booked_times '|' set_pickup_time_one '|' add_pickup_time_two />"
/>
My issue is that how do I uncheck multiple times using <cms:db_persist /> at the front-end. I tried this but it is not working. NB: I added '-' .
- Code: Select all
...
booked_times = "-<cms:concat booked_times '|' set_pickup_time_one '|' add_pickup_time_two />"
...