Jump to:

2011 Posts in 1436 Topics by 620 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: 1403 Views
  • Mo
    Avatar
    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.

    Cheers,

    Mo

  • biapar
    Avatar
    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>
    $dataFieldByName(Surname)
    ***

    Is there a function that return field $Title?

    1403 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.