Jump to:

23480 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » HiddenField value issue

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

Page: 1
Go to End
Author Topic: 846 Views
  • Terminator4
    Community Member
    81 Posts

    HiddenField value issue Link to this post

    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!


  • BenWu
    Community Member
    90 Posts

    Re: HiddenField value issue Link to this post

    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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.