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:

All other Modules /

Discuss all other Modules here.

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

Userforms required dropdown

Go to End



Community Member, 11 Posts

17 November 2011 at 7:28am

I am trying to create a userdefined form with some fairly basic validation. There are 3 text boxes and a series of dropdown menus. I need all the fields to be required and have ticked the "required" box in the options for each. The validation works fine for the text boxes but I need to be able to set the option for the drop down so that the form can't be submitted if the first option (which is "Please select") is chosen. Is there anyway to do this? It's pretty basic validation... but I am struggling.