I am trying to get the current ID of a record in a control however the records ID never changes.
This is what I am trying to do:
new HiddenField($name = "GroupID",$title="",$value=$this->record["ID"])
Please help!
Thanks
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.
I am trying to get the current ID of a record in a control however the records ID never changes.
This is what I am trying to do:
new HiddenField($name = "GroupID",$title="",$value=$this->record["ID"])
Please help!
Thanks
i got the same problem too. looks like lots of other people got the same problem: the value is not shown in the html. I am not using SS3.0.2 and i still got the same problem?
i have to use literal field instead of hiddenfield for now