Jump to:

23368 Posts in 18143 Topics by 2863 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: 836 Views
  • Terminator4
    Avatar
    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!

    Thanks

  • BenWu
    Avatar
    Community Member
    87 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

    836 Views
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.