How to prepopulate fields using URL parameters

  • Johannes
    Asked on July 21, 2024 at 10:42 AM

    HI,

    so this works for us but only the email gets taken. Can you help me why that is?

    Best regards!

  • Eiron_O JotForm Support
    Replied on July 21, 2024 at 10:48 AM

    Hi Johannes,

    Thanks for reaching out to Jotform Support. Are you trying to prepopulate your form using URL parameters? Can you send us the form link with the URL parameters so we can check? Also, please tell us the fields you want to prepopulate so we can check if the URL parameters are correct.

    Once we hear back from you, we'll be able to help you with this.

  • https://www.jotform.com/240733074954358?name%5Bfirst%5D=Hallo&name%5Blast%5D=Blabla&email=bla%40peter.com
    Replied on July 22, 2024 at 2:58 AM

    Oh sorry should have double checked!

  • Chris_L JotForm Support
    Replied on July 22, 2024 at 3:16 AM

    Hi Johannes,

    To prepopulate the name, the format should be:

    ?UniqueName[first]=FirstName&UniqueName[last]=LastName

    In your form, if you'd like to prepopulate the name field with John Smith and email address is john@example.com, the URL parameter should be:

    https://www.jotform.com/240733074954358?contactPerson[first]=John&contactPerson[last]=Smith&email=john@example.com

    Let us know if you have any other questions.

Your Answer