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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

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

showcalendar on DateField by default


Go to End


1352 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