Conditional Fields on Forms

Conditional Fields on Forms

Conditional fields are a smart way to create dynamic, user-friendly forms by showing or hiding specific fields based on what a submitter selects earlier in the form. This approach helps keep forms shorter, more relevant, and easier to complete.

How Conditional Fields Work

In Delivra's Form Editor, conditional fields are managed through the Display Conditions feature. When editing a form, clicking on any cell reveals the Display Conditions section. Here, you can configure which fields should appear based on prior choices made by the submitter.

Before setting conditions, you must create Profiles by clicking the "+" button in the Display Conditions menu. A Profile defines the specific criteria that must be met for a form field to be shown.

For example, imagine your form prompts users to select an Industry. Based on their selection, you want to show a relevant second dropdown for a specific Segment:

  • If the user selects Healthcare, a field with Healthcare Segments like Hospitals, Private Clinics, and Telehealth Providers appears.

  • If Education is selected, options like K-12 Schools, Colleges & Universities, and Online Learning Platforms show up.

  • If Retail is selected, they see Brick-and-Mortar Stores, E-commerce Businesses, and Wholesale Suppliers.

Each main industry (Healthcare, Education, Retail) would have its own Profile:

  • Healthcare: "Industry = Healthcare"

  • Education: "Industry = Education"

  • Retail: "Industry = Retail"

You would then apply these Profiles to the relevant form cells so they only display when the corresponding industry is selected.

Best Practices and Tips

  • Name Profiles Clearly: Use intuitive names for Profiles (e.g., "Industry: Healthcare") to make setup and future edits easier.

  • Test Thoroughly: Preview your form after setting conditions to ensure the right fields show up at the right time.

  • Keep Forms Clean: Even if a field is hidden, remember the cell still exists on the form layout, so plan your formatting carefully.

  • Use Simple Criteria: Start with straightforward rules like "Industry = Healthcare" before trying to build more complex multi-criteria Profiles.

Key Limitations

  • Display Conditions control field content only: They hide or reveal text, fields, buttons, etc., within a cell, but they do not affect form formatting.

  • Background colors and spacers: If a hidden cell has a background color or other formatting applied, that styling may still be visible, depending on how the form is built.

Practical Use Cases

  • Curated Content: Show different links to content based on the selected industry.

  • Event Registrations: Display session choices relevant to the selected event type.

  • Product Inquiry Forms: Tailor questions based on the product category chosen.

If you have any questions about setting up conditional fields on your forms, please reach out to our Support team by emailing support@delivra.com. We’re happy to help!

    • Related Articles

    • Progressive Form Fields

      Progressive form fields create a personalized and efficient experience by adapting forms based on how many times a user has interacted with them. Instead of relying on previous field selections (as with conditional fields), progressive forms display ...
    • Create a SMS opt-in webform

      You can easily create a Delivra form to collect SMS opt-in, or add SMS opt-in to your existing webform in a few simple steps. There are three required fields to add to the form if you want to allow subscribers to opt-in to your SMS program: SMS Phone ...
    • Create a subscribe form

      What is a subscribe form? Forms are used to collect subscriber information. When the form is submitted, it will add a new contact to your Delivra account or update an existing contact with that email address in your account. Typically subscribe forms ...
    • Preference Centers

      Building a Preference Center to Keep Subscribers Engaged A successful email strategy isn’t just about growing your list—it’s about keeping your audience engaged. A preference center gives subscribers the freedom to choose what kind of content they ...
    • How do I merge a Personalized URL (PURL) into my email?

      What is a PURL? A PURL is a unique URL designed to be associated with a specific individual or recipient. PURLs are typically used in email to enhance personalization, track unique recipient engagement and responses. Marketers use PURLs for many ...