Jump to:

2012 Posts in 1438 Topics by 621 members

Form Questions

SilverStripe Forums » Form Questions » Dynamic label tag

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

Page: 1
Go to End
Author Topic: 1407 Views
  • Mo
    Community Member
    508 Posts

    Dynamic label tag Link to this post

    Hey all,

    Quick question, if I have a custom form template, is there a way of generating a label tag, in a similar to generating the field using $dataFieldByName()?

    I have browsed the Form class and cant see anything that matches this.



  • biapar
    Forum Moderator
    435 Posts

    Re: Dynamic label tag Link to this post

    This is a good question.
    I need this info, too...

    <label class="left" for="$FormName_Surname">Surname</label>

    Is there a function that return field $Title?

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.