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, biapar, Willr, Ingo, swaiba, simon_w

HiddenField value issue


Reply

2 Posts   853 Views

Avatar
Terminator4

28 February 2009 at 1:28am Community Member, 81 Posts

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

Avatar
BenWu

27 November 2012 at 1:52am Community Member, 90 Posts

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