Start free trial

Pre-populate a form using URL parameters

You may wish to send the same form link to multiple people or groups, and have some of the fields prefilled with different information for each user.
There are two ways to achieve this depending on your use-case. You should try both to see what works best for you.

This is the more advanced way. The alternative way is to use the save and complete later method.

1. First you’ll need your form URL, for example:
https://demo.snapforms.com.au/form/patient-registration-example
Sending this URL to your users as it is will give them the blank form.

2. Now add a question mark to the end of your form URL like this:
https://demo.snapforms.com.au/form/patient-registration-example?

3. Then for each field you’d like to pre-populate, add the field name (in all lowercase) and answer like this.:
https://demo.snapforms.com.au/form/patient-registration-example?first name=John

3. You can pre-populate multiple fields by separating them with an & sign, like this:
https://demo.snapforms.com.au/form/patient-registration-example?first name=John&last name=Smith&patient email=johnsmith@gmail.com

When the user clicks the link, if there are questions and answers in the URL with the above format, they will be pre-populated on the form.
You can create as many of the above links as you need for your different users of the same form.

Note: Depending on your browser, spaces in your URL will be automatically replaced with %20 like this:
https://demo.snapforms.com.au/form/patient-registration-example?first%20name=John&last%20name=Smith&patient%20email=johnsmith@gmail.com
It is recommended to use the %20 code instead of spaces in the URL.

Get an online form trial or demo absolutely free.