How to Allow Prefill (URL and Gov AD)
Form editors have the option to allow prefilling of a field by appending a parameter to the form URL, or to prefill using Gov AD email or username (requires Gov AD authentication in Form Settings).
- Follow the steps in How To Create Short Textbox or How To Create Long Textbox to create your textbox.
- Navigate to the Prefill Values tab.
For Prefill from URL:
- Toggle on Allow Prefill from URL.
- Click Save and Publish.
- When sharing the form URL, attach the parameter
?fid_{fieldID}={fieldValue}
to the end of your form URL, then open the form to test the prefill.
For example, navigate to the "Info" tab on the field you want to prefill, and on the right sidebar, check for the long string ID that looks like 70f056f9-48e7-485a-ac02-1206255c4824.
Let's say I want to prefill this field with the value "EGNC", I will append the end of my URL with ?fid_70f056f9-48e7-485a-ac02-1206255c4824=EGNC
For Prefill from Gov AD:
- Select your source to be either Gov AD Email or Gov AD Name (Username)
- Click Save and Publish
- Navigate to your parent Form, click on the "Security" tab and ensure that "Government AD" is selected under "Authentication"
Therefore, when respondents log in via Gov AD before accessing the form, the respective field will prefill with either Gov AD Email or Gov AD Name, as configured.