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:

Archive /

Our old forums are still available as a read-only archive.

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

Form Heading vs HeaderField, but not a legend...

Go to End



Community Member, 501 Posts

25 September 2007 at 6:28am

I noticed when you add a form heading from within the cms you'll get something like:

<label class="FormHeading">Your Details:</label>

but when adding an HeaderField in a custom made form, you'll get an H-tag...

Now with css I can make both look the same, but I want in both my forms this to be the same...

so either with label or either with h-tags...

Furthermore, is there a possibility to add a 'legend'-tag? I believe it might be even better to do
<fieldset><legend>User Details</legend>
// input fields here

// more input fields here