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

[SOLVED] Required Checkboxfield / Validator


Go to End


2 Posts   1814 Views

Avatar
derralf

Community Member, 28 Posts

22 April 2012 at 9:01pm

I had some Problems with a required Checkboxfield ("yes i've read the terms of use") in a form that wouldn't validate.
The Checkboxfield was listet in the RequiredFields array but the Form was sent with unchecked Checkboxfield.

There are 2 patches that solved my issue:
(Silverstripe 2.4.7)

Ticket #6231: check_box_php.patch
http://open.silverstripe.org/attachment/ticket/6231/check_box_php.patch

Ticket #6230: check_box_js.patch
http://open.silverstripe.org/attachment/ticket/6230/check_box_js.patch

...maybe it helps anyone, it wasn't easy for me to find them...

Avatar
JonShutt

Community Member, 244 Posts

21 February 2013 at 8:58am

thanks - worked for me!