done it :)
return new HiddenField($this->Name, null, $this->CurrentPage()->Title);
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.
- Previous 10 entries
- 1
- Page 22(current)
Is there a way to make a custom field for $legend as well? I don't see a way to add <legend></legend> to the Userform template.
I've written a little tutorial on including data into forms, such as $member, $title etc:
hope it helps some in the future!
- Previous 10 entries
- 1
- Page 22(current)