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

Default css style for mandatory fields?


Go to End


2 Posts   2665 Views

Avatar
flinx

Community Member, 1 Post

13 March 2010 at 2:32am

I've created a form with a couple of fields. Three of them are mandatory. So I used

$validator = new RequiredFields('name', 'position', 'message');

to set them as mandatory.
What are the possibilites to display these fields in a different manner (css, using a star (*) within the label, ...)?

I'm using Silverstripe 2.3.6.

Avatar
kcd

Community Member, 54 Posts

18 January 2011 at 3:59pm