You have to format your code to see your errors:
PHP Code:
$GLOBALS['TL_DCA']['']['fields'][''] = array(
'label' =>
'exclude' => true,
'inputType' => 'checkbox',
'options_callback' => array(),
'eval' => array(
mandatory => true;,
),
'save_callback' => array(),
),
'sql' => '',
);
Corrected:
PHP Code:
$GLOBALS['TL_DCA']['TABLENAME']['fields']['FIELDNAME'] = array(
'label' => '',
'exclude' => true,
'inputType' => 'checkbox',
'options_callback' => array(),
'eval' => array(
'mandatory' => true
),
'save_callback' => array(),
'sql' => ''
);
To just change the mandatory setting you have to use this:
PHP Code:
$GLOBALS['TL_DCA']['TABLENAME']['fields']['FIELDNAME']['eval']['mandatory'] = true;
Bookmarks