Hello,
Just a question about DCA and subpalettes. I try to use this system on a form, it is not really working because at load the subpalettes is displayed (and checkbox not checked*!?). After a click it is ok. What did I wrong*?
Thanks
At load, not ok. (subpalette loaded but checkbox not checked)
After a click ok. (subpalette not loaded)
After 2nd click ok. (subpalette loaded)
My DCA code*:
'palettes' => array
(
'__selector__' => array('hour_mode' ),
'default' => 'some before... ;{date_legend:hide},start_date,hour_mode; some after...'
),
'subpalettes' => array
(
'hour_mode' => 'start_time,end_time',
),
'fields' => array
(
'hour_mode' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_rdv_group']['hour_mode_active'],
'exclude' => true,
'inputType' => 'checkbox',
'eval' => array('submitOnChange'=>true)
),
'start_time' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_rdv_group']['start_time'],
'exclude' => true,
'default' => date('H', time()) * 3600,
//'default' => 3600,
'inputType' => 'text',
'flag' => 8,
'eval' => array('rgxp' => 'time', 'tl_class' => 'w50')
),
'end_time' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_rdv_group']['end_time'],
'exclude' => true,
'default' => date('H', time()) * 3600 + 3600, //more one hour than start by default
'inputType' => 'text',
'flag' => 8,
'eval' => array('rgxp' => 'time')
),
Bookmarks