How can I inject a value into a hidden form field?

  • Profile Image
    Asked on January 17, 2014 at 03:38 AM

    I am using and i want to inject a userid into a form field.  The user id will come from a cookie.

  • Profile Image
    Answered on January 17, 2014 at 07:03 AM

    Hello jrwcreativegroup,

    You can add a "Hidden Box" in your form which can be found under "Widgets" tab:

    Once you have hidden box in your form, you can use URL parameter feature to populate the hidden  box with a value. This guide should help you understand url parameters:

    You can also add the value through your codebehind or through javascript if you are using your form's source code to embed your form.

    I have created a demo form for you. Take a look :

    This form has a hidden field named userId which I am populating through url parameters. You need to refer the guide to understand the naming of the form fields to use in url parameter. URL parameter is something very similar which you use in ASP.NET and call it query string.

    Feel free to clone this form to take a closer look. This guide should help you in form cloning:

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!