Loading the form with Preselected Products (Show Product Selection)
The product ID is a unique ID number assigned to each product in your form builder.
![Notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F0a6f5332-a7a5-4309-8f1b-c6a03e37f836%2F60f09f18-45e7-48e2-afa9-3d7f5d8ee149%2Fproducts_id.png?table=block&id=d0c769a0-4d1f-425e-b502-b99ef2af500f&cache=v2)
You can use the product ID to load the form with a preselected product. This is beneficial if you'd like to direct people to a page with specific product preselected but still offer them the chance to use other products in the same form.
Loading The Form with a Main Pre-selected Product
To preselect a specific product from a form, you can pass product ID as a URL parameter like ?dfpr=<ID>
Where <ID
> is the product ID taken from the DepositFix form builder.
![Notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F0a6f5332-a7a5-4309-8f1b-c6a03e37f836%2F0954df00-abf2-4697-a1d0-2e2dd613f20f%2Fadding_dfp.png?table=block&id=d4d21d40-a77f-46fa-a814-570266981bd7&cache=v2)
For example, if we want to preselect the 2nd product on this page:
https://dfforms.com/shareform/dff0c42e-da1f-4e12-8253-ae0269395105-3
We can add the URL parameter above and the product ID. So the URL will be:
https://dfforms.com/shareform/dff0c42e-da1f-4e12-8253-ae0269395105-3?dfp=dfpiel1qJ67jhx
![Notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F0a6f5332-a7a5-4309-8f1b-c6a03e37f836%2Fdd59b06e-ed16-4186-8741-c156c5c14231%2Fpreselected.png?table=block&id=05b517aa-b5b3-4296-8a0d-6d58f6fc8b95&cache=v2)
Loading The Form with Optional Pre-selected Products
You can also use the ?dfp
parameter to load an additional pre-selected product on the same form.
For example, we want to load this form with a main product, and an optional product pre-selected. To do this, we can use ?dfp= followed by all product IDs, separated by comma https://dfforms.com/shareform/dff3afbf-db87-4756-a9b4-e09c0705c9cf-3?dfp=dfpirAeGdKAW7B,dfpiRMW1FsoI4e
![Where 1 is the URL parameter
2 is the first product ID
3 is the 2nd product ID](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F0a6f5332-a7a5-4309-8f1b-c6a03e37f836%2F26902095-b282-4345-b76e-b54aa4f278e1%2FCleanShot_2024-06-14_at_14.28.402x.png?table=block&id=8073cc14-1895-4be1-96a6-7c00bfdfd40b&cache=v2)
This end result will look like
![Notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F0a6f5332-a7a5-4309-8f1b-c6a03e37f836%2F5e6c1d3b-94c7-48ec-8e83-d161c71d73c1%2Fpreselected_optional.png?table=block&id=378f52df-7ad1-49f3-ac3a-3540b8c06eef&cache=v2)