Pass dynamic value in the form's hidden field

  • Jaimin
    Asked on February 15, 2020 at 2:49 AM

    Hi Support Team,


    I will be using a jotform on my bigcommerce store where in I want customer name and email to be passed in a hidden field.


    Bigcommerce provides me with the global variable that gives me this value.


    Can you please let me know who can I pass this in jotform hidden field.


    Regards

    Jaimin

  • roneet
    Replied on February 15, 2020 at 3:38 AM

    Yes, it should still be possible to pass the data to a form's hidden field embedded on a web page via iframe. What you simply need to know is the field names that you wish to be prepopulated. You can add parameters to form's URL within embed code. For example:

    script code

    <script type="text/javascript" src="https://form.jotform.com/jsform/90876342678456?field_1=some_value"></script>

    iframe code

    <iframe id="JotFormIFrame-90876342678456" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" allowfullscreen="true" allow="geolocation; microphone; camera" src="https://form.jotform.com/90876342678456?field_1=some_value" frameborder="0" style="width: 1px; min-width: 100%; height:539px; border:none;" scrolling="no" > </iframe> <script type="text/javascript"> ... </script>

    If you can share with us the page where the form is embedded, and give us more details on the matter, we might be able to provide you a direct solution to your concern.

    Hope this helps! But, please get back to us if you need further assistance.

    Thanks.