Documentation

Max Addons Form Conditions for Bricks Builder

Max Addons introduces Form Conditions to extend the native Form element in Bricks Builder.

With this feature, you can create conditional logic for your form fields, making your forms smarter and more dynamic.

Form Conditions allow you to show, hide, or control fields based on user input. This ensures your forms remain clean, user-friendly, and personalized to each visitor's choices.


Enabling Form Conditions#

Before you start, make sure Form Conditions are enabled in the backend:

  1. Go to your WordPress Dashboard.
  2. Navigate to Bricks >> Max Addons.
  3. Open the Extensions tab.
  4. In the Features section, toggle on Bricks Form Conditions.
  5. Don't forget to click Save Changes.

enable bricks form conditions

Adding Form Conditions#

  1. Open the page in Bricks Builder Editor and add the Form element.
  2. In the Content tab, click + ADD FIELD
  3. Select any form field.
  4. Scroll down until you see the Condition options.

Condition Options#

When setting up conditions, you can define how one field responds to another. The available options are:

  • Target Field: The field that your condition depends on.
  • Condition Type: The rule that determines when the condition applies.

Condition Types include:

  • Equals: Matches an exact value.
  • Not Equals: Matches when the value is different.
  • Greater Than: Used for numeric inputs.
  • Less Than: Used for numeric inputs.
  • Includes: Matches if the field contains certain values.
  • Contains: Checks if text consists of a specific word or phrase.
  • Does Not Contain: Ensures the field excludes specific text.
  • Matches Pattern (Regex): Advanced matching with regular expressions.
  • Is Empty: Condition applies if the field is blank.
  • Not Empty: Condition applies if the field is filled.

define form conditions


Important Note#

For conditions to work correctly, the Attribute: Name of the Target Field must match the Target Field name you use in the conditional field.

Example:

  • If your Meal Preference (Select) field has Attribute: Name = meal_preference
  • Then any conditional field must set Target Field = meal_preference

If they don’t match, the condition will not work.

Example: Registration Form with Meal Preference#

Imagine you are creating a form for an event registration. You want to ask attendees if they would like a meal, and then show different meal options depending on their choice.

Step 1: Add a Field for Meal Required#

  • Type: Select
  • Label: Meal Required
  • Attribute: Name = meal_required
  • Options:

    • Yes
    • No

Step 2: Add a Conditional Field for Meal Options#

  • Type: Select
  • Label: Meal Options
  • Attribute: Name = meal_options
  • Options:

    • Vegetarian
    • Vegan
    • Non-Vegetarian

  • Condition:

    • Target Field = meal_required
    • Condition Type = Equals
    • Value = Yes

Result:

  • If the user selects "Yes," the Meal Options dropdown appears, allowing them to choose from Vegetarian, Vegan, or Non-Vegetarian options.
  • If the user selects "No", the Meal Options dropdown remains hidden.

forms conditions for bricks builder


Want to explore more advanced form features? Read about New Form Fields for Bricks Builder to see how to add International Phone, Range, and Signature fields to your forms.

Not the solution you are looking for?

Please check other articles or open a support ticket.