How to Autofill a Motion 2 Form Field Using a URL Parameter
The URL param autocompletion setting enables users to have form fields pre-fill through the use of a URL. This pre-filled data can be applied for hidden form fields as well.
Use Case Examples:
- A potential lead wants to fill out an Inquiry Form and you want the Job Title of "Teacher" to automatically be filled in.
- An event is held and you want the event name filled in automatically on the Event Form, but to be hidden from the person filling the form out.
How to Configure:
Right-click the Task (Example: Contact Form) and click Manage Form Fields.
Double click (or right click, then left click Edit) to edit the specific Entity Field that you want data automatically pulled in (Example: Job Title).
Left-click the checkbox next to URL Autocomplete, which says “Check this to enable URL param autocompletion”.
A new text box should appear that says “Param Name:”.
Enter any name you would like here. It is recommended to keep it short, as it will be pulled into the URL in order to identify the data from this specific entity field (Example: jobtitle).
Left-click Save & Close.

If the entity field connects to a data group:
After entering the param name (example: jobtitle), you will need to use the ID of the data group value to reference which title from the data group list to pull in (example: the ID of “Teacher” is 1).
To find a value's ID, go to Data Tools > Data Groups and select the data group list you want to use (example: Job Title).
- If the ID column is already displayed, refer to the number (example: 1) that horizontally aligns with the title (example: Teacher) you want to automatically pull in.
- If the ID column is not already displayed, on the far right, left-click the chevron down icon, hover over “Columns” and select “ID”. This will now display the ID column. Refer to the instructions directly above to proceed.

At the end of the form URL, type ? and then type the param name, followed by =, and then type the ID of the specific title from the data group.
Full URL example: www.yoursitename.com/contact-form?jobtitle=1.
Result: Under “Job Title” on the contact form, “Teacher” will automatically be selected by using the above URL.
If the entity field is a text field:
Single Word
At the end of the form URL, type ? and then type the param name (example: jobtitle), followed by =, and then type the specific text you want to appear in the textbox on the form (example: Teacher).
Full URL example: www.yoursitename.com/contact-form?jobtitle=Teacher
Result: Under “Job Title” on the contact form, “Teacher” will automatically be typed in by using the above URL.
Multiple Words
At the end of the form URL, type ? and then type the param name (example: jobtitle), followed by =, and then the specific text you want to appear in the textbox on the form. Write out the text without any spaces, but type %20 in between each word instead. (example: Elementary%20School%20Teacher).
Full URL example: www.yoursitename.com/contact-form?jobtitle=Elementary%20School%20Teacher
Result: Under “Job Title” on the contact form, “Elementary School Teacher” will automatically be typed in by using the above URL.
Things to know
- The parameter name can use only letters, numbers, hyphens and underscores, up to 50 characters.
- Values are split on commas, so a value such as “Smith, John” or “$15,000” becomes two values. Pass IDs or comma-free text.
- The URL fills a field only when the field has no value already loaded (for example from the person's earlier answers). Multi-select and checkbox group fields are the exception: the URL value replaces what was loaded.
- Put the parameter on the first form task the page shows. After a submit redirects to another page, the parameter is not passed on.
- Never put account numbers or other sensitive information in a URL parameter.
.png)
.png)