I am trying to access the form values of hidden fields so I can set them or retrieve them.
I tried the form.field_with() method as well as just form.fieldname and cannot figure out how to get a reference back for a hidden field.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In general you just do:
That goes for all kinds of form fields, not just hiddens.