AFL UTM Tracker Documentation

  1. Home
  2. Docs
  3. AFL UTM Tracker Documentation
  4. Gravity Forms Integration
  5. Gravity Forms Conditional Logic

Gravity Forms Conditional Logic

With our AFL UTM Tracker plugin, you can display or hide a Gravity Forms field based on conditional logic of a UTM parameter.

For this to work, you would need to use our Javascript Merge Tag in a hidden field.

Requirements

  • AFL UTM Tracker v2.17.0

Steps

Let’s say you would like to display a “Color” field when the “Last Touch UTM Campaign” is “summer_sale”, follow the steps below:

  1. Login to your WordPress admin dashboard.
  2. Make sure that you have enabled “Javascript Merge Tag” in our plugin settings.
  3. Go to your Gravity Forms > Select the form.
  4. Add a hidden field and set the default value to our merge tag:
    • Field Label: Last UTM Campaign
    • Default Value: afl_utm_js:utm_campaign

If you would like to based the conditional logic on a different UTM parameter or attribution data, please refer to our Javascript Merge Tag list.

  1. Add a text field:
    • Field Label: Color
    • Conditional Logic: Show this field if All of the following match “Last UTM Campaign” is “summer_sale”.
Gravity Forms > Hidden Field
Gravity Forms > Hidden Field
Gravity Forms > Conditional Logic
Gravity Forms > Conditional Logic