How to dynamically insert a table via url query params for an embedded form on my website.

  • logan24orr
    Asked on May 1, 2024 at 1:41 PM

    I'm trying to dynamically generate a table of 3 columns and 10 rows that is a read only table. I need the form user to see this table before they sign at the end of the form. Since each table is different for each user, I want to be able to pass in the data values for the table via a url.

    Is this possible to do? Is there any widget or extension that would allow me to accomplish this?

  • Neil JotForm Support
    Replied on May 1, 2024 at 2:09 PM

    Hi Logan,

    Thanks for reaching out to Jotform Support. I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    In the meantime, let us know if you have any other questions.

  • Neil JotForm Support
    Replied on May 1, 2024 at 4:17 PM

    Hi Logan,

    Thanks for patiently waiting. This is possible and if you're using the Input Table, you can prefill it with URL parameters. Here's an example link:

    https://form.jotform.com/241216628090048?typeA[1][0]=test&typeA[1][1]=test

    To get the correct Key to pass the value, you can use the inspect tool and get the name of the input under the td element in the table.

    How to dynamically insert a table via url query params for an embedded form on my website Screenshot 20

    Also, if the form is embedded, it will work the same; you just need to pass the parameters to the URL of your website where you have the form embedded. You can also check out this guide for more information.

    Give it a try and let us know if you need more help.

  • logan24orr
    Replied on May 1, 2024 at 4:54 PM

    Thanks you!

 
Your Answer