When running marketing campaigns across different channels, you want to streamline the user experience by pre-selecting the relevant product based on which link they clicked. With Formulayt, you can capture default product values from inbound marketing links using URL query strings.
Setting up product capture from inbound links
Let's say you're promoting two products through different marketing channels:
productA
productB
Follow these steps to automatically capture and set the product based on your inbound links:
Set up your marketing links with the query string parameter default_product:
Create a hidden field that will capture the inbound product value:
Navigate to "Setup/Fields"
Create a new hidden field (name it "DefaultProduct")
Set the prepopulation to receive the value from the QS parameter default_product
Configure your Product field to use the captured default:
Go to your Product field
Add a new rule with these settings:
Trigger: On form load
Condition: IF this field (Product) is blank AND DefaultProduct is NOT blank
Action: Set the value of this field to the field DefaultProduct
How it works
When a visitor clicks your marketing link https://yourform.com/order?default_product=productA, the system will:
Capture "productA" in the hidden DefaultProduct field
Apply this value as the default for your Product field
Display the form with productA already selected
Similarly, visitors clicking https://yourform.com/order?default_product=productB will see productB pre-selected.
This approach allows you to track which marketing channels are driving conversions while providing a seamless user experience.