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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1677 Views

Avatar
dio5

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
</fieldset>

<fieldset><legend>Message</legend>
// more input fields here
</fieldset>