You can fill certain fields in your form with values automatically. These values could be a name, an email address or a product title that is already available on your page. These values can come from the URL or can be stored directly in the HTML for the form.
To enable this functionality, include a placeholder variable using the ${name} format at the required places in your form. You can use this placeholder in headings, default values, user instructions and confirmation messages, for example, as well as in form elements such as calculated values and email address fields.
Once you have completed this step, you have two options to replace the placeholder with a specific value when loading the form.
Add a parameter with the required value to the URL of your page:
https://your-website.com/form?name=Max
When the form loads, it will then replace ${name} with ‘Max’ automatically.
Alternatively, you can pass the values directly in the HTML, using the data-fc-vars attribute on the form container:
<div data-fc-id="..." data-fc-vars='{"name": "Max"}'>
When the form loads, the script parses this attribute and replaces ${name} with ‘Max’ (see Attributes).