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:

Form Questions /

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

Default css style for mandatory fields?

Go to End

2 Posts   2173 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