Passing Data via QueryParameters

  • Profile Image
    Asked on August 22, 2011 at 04:57 PM

    I want to create a page on my SmugMug site that embeds a JotForm to allow my customers to order certain products from me. The way I envision it working is as follows:

    1. Customer locates a photo on my site that they like. According to the SmugMug architecture this photo has 4 unique data items that identify it.

    2. The clicks a button indicating they want to buy a framed print of this photo.

    3. They are taken to a page with a JotForm embedded into it. This form allows them to specify the size of the print and other optional information. However, at this point I need the 4 unique identifiers of the photo so I know what photo the customer wants. These data items should be hidden but need to be sent to me when the user submits the JotForm.

    The button that the user clicks in step #2 will have these 4 identifiers in it as part of the query string in the URL. Will it be possible for me to retrieve them at run time into 4 hidden fields on a JotForm? If so, how would I do that?


  • Profile Image
    Answered on August 23, 2011 at 03:20 AM

    Hi Kevin,

    This sounds plausible but we need more information so we can assist you better. Would it be possible to show us a sample of this photo on your site, preferrably one that has a JotForm linked to it?

    We'll await your response. Thanks!


  • Profile Image
    Answered on August 23, 2011 at 11:37 AM

    You can check out my site:

    Any of the photos there are candidates.

    I do not currently have any JotForm integration in my site - I am looking into adding it if I can do what I want: pass variables from a button click URL to fields in an embedded JotForm.

    Last night I think I found my answer on your site, but today I can't find it :(

    There was some page on your site that showed how to fill textareas, checkboxes, etc from URL parameters. I can't find that page now but it had instructions on how to name fields, etc.

    Would you know what page that is?

  • Profile Image
    Answered on August 23, 2011 at 01:26 PM

    It took me 2 hours but I finally found the page I was referring to:

    This is exactly what I want to do, except that I need my prepopulated fields to be hidden. I'll give it a try but if you have any suggestions, please let me know.


  • Profile Image
    Answered on August 24, 2011 at 06:59 AM

    Hi there,

    Thank you for using JotForm.

    We're glad to know that you've found what you're looking for. If you ever need assistance, please feel free to contact us. Our team will be more than happy to help you with anything.


    Albert   JotForm Support