How do you set default values for Template Field (FuelCMS 1.0)
I'm using the Template field and everything for the 'add' portion is working great, multiple items are being inserted into the right tables, all data is saved correctly...the relevant code below.
$fields['date_ranges'] = array(
'display_label' => TRUE,
'type' => 'template',
'label' => 'Date Ranges',
'non_sortable' => TRUE,
'fields' => array(
'Dates' => array('class' => 'no_editor datepick' ),
'add_extra' => TRUE,
'repeatable' => TRUE
My question is about when I am editing. How do I get the multiple instances of the template to display and work like it does during 'add'. I don't want to put them in 'fields' because then clicking 'add another' will duplicate all the fields and they won't be stored in the same array when submitted.
Any help would be appreciated.