Hi guys,
I am setting an optionsetfield in page's setting tab. As I save click save and publish it brings me back to the default option
$fields->addFieldsToTab('Root.Settings', array(
$options = OptionsetField::create('DisplayBanner', 'Display banner', array(
'1' => "Parent",
'2' => "Custom",
'3' => "Global"
), '1'),
DisplayLogicWrapper::create(
$banner = UploadField::create('Banner')
)->displayIf('DisplayBanner')->isEqualTo('2')->end()
));
It is not saving my option, thanks in advance