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.

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.

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   1322 Views

Avatar
Terminator4

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!

Thanks

Avatar
BenWu

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