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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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
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?