Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

HiddenField value issue

Go to End

2 Posts   1219 Views


Community Member, 81 Posts

28 February 2009 at 1:28am

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!



Community Member, 97 Posts

27 November 2012 at 1:52am

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