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?


Go to End
Reply


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