Pre-Filling Form Fields
When linking to an order form, you might want to pre-select a certain service for the customer. For example, if they clicked on the middle plan in your pricing page, the middle plan should be selected in your order form.
You can do that by adding a URL parameter to your form link: ?field_ID=value
. For a service the value must be a valid service ID.
Here's a video overview of how this works:
To find the field ID you can go into the form editor, click to edit a field and copy the field ID from the editor window which pops up on the right side.
Here are some example variables you can use to pre-select fields:
Field 1 set to service ID 123
username.spp.io/order/test?field_1=123
Service field with multiple selectable values
?field_1[]=123&field_1[]=456
Service field with a service that has pricing variants
?field_1=123&options_1[0]=Large&options_1[1]=Red
Service field with multiple selectable values and pricing variants
?field_1[0]=123
&field_1[1]=456
&options_1[0][0]=Large
&options_1[0][1]=Red
&options_1[1][0]=Small
&options_1[1][1]=Blue
Coupon field
?coupon=SPECIAL
Email field
?email=name@example.com
Pass related order to contact form
?order_id=ABCD123
Other field types
?field_1=Some Text