Passing a variable from a link to a JotForm

  • smilenj
    Asked on December 5, 2017 at 12:49 AM

    Hello - 

    Hoping you can help me.  

    I have this form: https://form.jotform.com/73375442384158

    And there is "who is this for?" field where the user selects who this submission is for. Right now there is just one person in the list.

    Is there a way to pass that variable in the link i send the user and have it populate a field in the form?  Something like:

    https://form.jotform.com/73375442384158?Daniel_Ho

    That way I can remove the "who is this for?" field. Only caveat is that I need the name (Daniel Ho in this case) included in the submitted data so I can use it later.

    Thanks,

    Joey

  • Jan
    Replied on December 5, 2017 at 3:48 AM

    You can actually set a default value in the dropdown field. You can do this in the Properties > Advanced tab. Here's a screenshot:

    151246291912 05 cbztv Screenshot 10

    You may also do this via the URL parameters. You just need to get the Unique Field Name of the Dropdown field and assign a value to it. Here's an example:

    https://form.jotform.com/73375442384158?Who_for=Daniel%20Ho

    Form URL = direct link of the form

    Who_for = Unique field name of the dropdown

    Daniel%20Ho = Prepopulated value

    %20 = this is a blank space

    We do have an app called Field Prepopulator that you can use. Here's the link: http://prepopulate.jotform.io/. You may also do it manually via the URL, here's a guide: https://www.jotform.com/help/71-Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters.

    Hope that helps. If you have any questions, let us know. Thank you.


  • smilenj
    Replied on December 5, 2017 at 8:04 AM

    This is awesome - thanks. One follow up question - how can I use this when I embed the form in a WordPress page?

    This is the form with a variable: https://form.jotform.com/73380498984171?Isfor=Mary%20Jones

    This is the page I'm trying to embed it on: http://www.youare.video/upload/

    http://www.youare.video/upload/?Isfor=Mary%20Jones doesn't work

    Thanks,

     

  • smilenj
    Replied on December 5, 2017 at 10:02 AM

    I must have done something and now its working.

    Thanks,

    Joey

  • David JotForm Support Manager
    Replied on December 5, 2017 at 10:56 AM

    On behalf of my colleague, you are welcome! Open a new thread if you need anything else, we will be glad to assist you.