Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

showcalendar on DateField by default


Go to End


866 Views

Avatar
spekulatius

Community Member, 5 Posts

13 March 2014 at 1:57pm

Hello,

I'm generating almost all of my forms from the DataObjects I implemented by using the getFrontendFields-Function:

$fields = $dataObject->getFrontendFields();

Those fields include DateFields sometimes. I would like to use the integrated option for the 'showcalendar' without adjusting all fields manually. Does anyone know a way to set the configuration by default to true for the key 'showcalendar'?

Regards,
spekulatius