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:

  1. Set up your marketing links with the query string parameter default_product:

  2. Create a hidden field that will capture the inbound product value:

    1. Navigate to "Setup/Fields"

    2. Create a new hidden field (name it "DefaultProduct")

    3. Set the prepopulation to receive the value from the QS parameter default_product

  3. Configure your Product field to use the captured default:

    1. Go to your Product field

    2. Add a new rule with these settings:

      1. Trigger: On form load

      2. Condition: IF this field (Product) is blank AND DefaultProduct is NOT blank

      3. 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:

  1. Capture "productA" in the hidden DefaultProduct field

  2. Apply this value as the default for your Product field

  3. 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.