Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Form Heading vs HeaderField, but not a legend...

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

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

Page: 1
Go to End
Author Topic: 1186 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    Form Heading vs HeaderField, but not a legend... Link to this post

    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>

    1186 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.