Skip to main content

How to Use Input Validation

Overview

Input Validation allows creators to enforce custom rules on form fields to capture only the data that matters. From restricting email submissions to specific domains (e.g., only @brand.com) to validating phone formats or even password-protecting landing pages, you're now in full control of your data quality and audience access. These capabilities empower marketers to ensure cleaner inputs, protect gated content, and engage only high-intent users.


Key Benefits

  • Higher-quality leads: Filter submissions so you’re engaging the audiences that matter most to your campaign goals.

  • Protected, gated content: Limit access to exclusive pages, offers, or downloads to the right users only.

  • Accurate, consistent data: Enforce valid formats and eliminate typos or fake entries before they hit your CRM.

  • Compliance readiness: Apply rules like age checks (e.g., 21+) to meet legal or brand requirements.


How it Works (Step-by-step)

  1. Add or select your form
    In the flow editor, create a new form or select an existing form block (e.g., “Email,” “Phone,” or a numeric field for age).

  2. Open Advanced configurations
    In the form field settings, see Advanced Configurations and toggle Define valid input (or the equivalent Input Validation control).

  3. Choose your rule(s)

    • Domain restriction: Allow or block specific email domains (e.g., only @brand.com; block common personal domains).

    • Format & value checks: Require valid email/phone formats or set numeric conditions (e.g., age must be ≥ 21).

    • Access controls: Add simple checks like a password field to gate content.

  4. Set the error message
    Write a clear, friendly message that appears when inputs don’t meet your rule (e.g., “Please enter a valid work email” or “You must be 21+ to continue.”).

  5. Preview and test
    Use Preview to try valid and invalid inputs. Confirm the form blocks incorrect entries and displays your error message as expected.

  6. Publish and monitor

    Publish your page. As submissions come in, review your downstream tools (CRM, email, analytics) to confirm cleaner data and improved lead intent.


How to Set Up an Age Gate

Age gating is one of the most common uses of Input Validation, particularly for alcohol brands, sweepstakes, or any campaign with a minimum-age requirement. Note that age gating uses Input Validation, not Smart Rules; Smart Rules control what happens after submission (e.g., page routing), while Input Validation controls whether the form can be submitted at all.

Here's how to set it up:

1. Add an Age field to your form

In the Flow Editor, add a numeric form field and label it "Age."

2. Open Advanced Configuration for that field

Click into the Age field settings and expand Advanced Configuration.

3. Enable Input Validation and define your rule

Toggle on Input Validation, then set the rule:

  • Input mustbe greater than or equal to21 (or 18, depending on your requirement)

4. Write your error message

In the "If rules not met, then show error message" field, enter something like:

"You must be 21 or older to submit."

5. Save and test

Confirm that entering 19 should trigger the error message and block submission. Entering 21 or above should allow the form to submit normally.


Example use cases

  • Gated access for exclusive campaigns: Restrict submissions to approved domains for employee, partner, or VIP programs.

  • Compliance & age verification: Enforce age gates (e.g., 21+ for alcohol brands, 18+ for sweepstakes).

  • Data hygiene: Require valid formats to reduce bounces and bad records (proper emails/phone numbers).


Best practices

  • Be explicit in your UI copy: Tell users what qualifies (e.g., “Use your company email to access this offer”).

  • Keep error messages concise: State what’s wrong and how to fix it in one line.

  • Start simple, iterate: Launch with a single high-impact rule (like domain allowlist or age ≥ 21) and expand as needed.

  • Test edge cases: Try subdomains, uppercase/lowercase emails, and off-by-one values (e.g., age 20, 21, 22).


FAQs

  • Can I combine multiple rules? Yes—pair domain restrictions with format checks or age gates for tighter control.

  • Will this affect conversion? Validation may reduce volume but typically increases quality and downstream performance.

  • Where do I see errors? Errors display inline on the form; users must correct their input before submitting.

Did this answer your question?