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

Default css style for mandatory fields?


2 Posts   1629 Views


13 March 2010 at 2:32am Community Member, 1 Post

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.


18 January 2011 at 3:59pm Community Member, 54 Posts

A bit late now but yes...