Dynamically Toggle Visibility of a Form Field
- Topics:
- Forms
One really cool feature of Marketo forms is that you can dynamically hide/show form fields or fieldsets.
-
Go to Marketing Activities.
-
Select your form and click Edit Form.
-
Select the field you want to hide/show dynamically and click the link for Visibility Rules.
-
Find and select the field you want to build a condition around.
-
Select the operator.
TIP
This is cool because you can choose fuzzy matches like “starts with.” -
Select the value(s) to look for, then click outside of the drop-down.
TIP
You can select multiple values by clicking them while the drop-down is open. For example, you can select United States and Canada.NOTE
We previously converted Country to a pick-list field type and added all countries as values. -
Click Save.
And that’s it! Now when people fill out this form and select United States for Country, the State field will dynamically appear with the choices specified.