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.

Form Questions /

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

Default css style for mandatory fields?

Go to End

2 Posts   2143 Views


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.


Community Member, 54 Posts

18 January 2011 at 3:59pm