How to use Low Events with Safecracker
I'd like to see an example showing how to use Low Events fieldtype inside a customized Safecracker form; i.e., using separate inputs for start and end dates.
I'd like to see an example showing how to use Low Events fieldtype inside a customized Safecracker form; i.e., using separate inputs for start and end dates.
Replies
Low 3 Jul 2013 09:16
You can just use the variable {field:your_events_field_name} inside the safecracker tag. That will give you the date/time picker input fields.
Mohammed al-Shehri 3 Jul 2013 09:54
I want to be able to use a customized form. Is it possible to do something like:
<input type="text" name="my_events_field_name:start">
<input type="text" name="my_events_field_name:end">
<input type="hidden" name="my_events_field_name:allday" value="1">
Low 3 Jul 2013 10:05
Well, I haven't tested it, and I'd recommend you use the standard output and use JavaScript to alter it if you must.
But you can take the html output generated by the {field:my_events_field} tag, and hardcode that into the template, making sure the field names stay the same.