Is there a way to auto-fill a form field with a link from another page?

  • mbershok
    Asked on March 6, 2015 at 2:56 PM

    I have a form on an e-commerce site. I would like a link on each of the product pages to link to the form page and auto-fill a particular field with a product number. The product number would come from the link on the previous product page the user was at before coming to the form page.

    Is there a feature in JotForm that will allow me to do this? Is there a way to code this with a simple html active link tag?

  • Mike
    Replied on March 6, 2015 at 5:14 PM

    Thank you for contacting us.

    The form fields can be populated with the URL parameters.

    Example:

    http://www.jotform.us/form/50544220064140?product=158

    So, you can try to use parameters added to the page with embedded form.

    Example:

    http://yourwebsite.com/product-form/?product=158

    You will also need to use Embed or Source code embedding method in this case.

    Is there a way to auto fill a form field with a link from another page? Image 1 Screenshot 20

    However, the pre-population might work or might not work depending on your website.

    If you need any further assistance, please let us know.

  • mbershok
    Replied on March 9, 2015 at 8:07 AM

    Worked like a charm. Thank you very much.

  • Ashwin JotForm Support
    Replied on March 9, 2015 at 10:09 AM

    Hello mbershok,

    On behalf of my colleague, you are welcome.

    Do get back to us if you have any questions.

    Thank you!