Often a form will contain several generic fields that many respondents will answer in the same way. Rather than making users fill in these fields, which can be repetitive and time consuming, you can pre-populate them with the correct information so that, when users open the form, these fields will already be filled in. To do so, you will need the formโs URL and the variable names associated with the fields they want to fill in.
Field values can be passed into a form by appending them to the formโs URL using the following structure:
baseURL?variable1=value
Replace baseURL with the formโs URL, variable1 with the name attribute
associated with the field to be filled in and value with the appropriate plan's ID
value. To fill in multiple fields, insert the ampersand symbol (&) before any additional variables:
baseURL?variable1=value&variable2=value
For Example:
http://your_site_url/membership-setup-page/?subscription_plan=2
The result of above example will be like – the plan with plan id value 2 will get selected.
Follow these steps to set up a pre-filled field
- Get your site URL.
- Gather all the field name’s meta keys so that it can be added to the URL.
- If you wish to pre-fill any of the inbuilt fields available at the default form, then you can get its meta key from
ARMember
โพGeneral Settings
โพEdit preset fields
. - Once you have the field name and its meta key then you can add this at the URL to any of the button or at any page, and then when anyone clicks on it then they will be able to check the form will the field name automatically filled.
- Also, please note that when you pre-fill these fields then to, the member filling these details will be able to edit them, so you cannot set these fields to be non-editable.