Conditional Logic

Show or hide options based on customer choices.

Conditional Logic lets you show or hide Podifai custom options based on earlier customer selections. Use it to create cleaner Shopify product pages and guide shoppers through only the personalization fields that apply.

Overview

Conditional Logic lets you show or hide option types based on what the customer has already selected. Every option still lives on one customization surface — Conditional Logic keeps that surface short by revealing only the fields that apply to the choices already made. It is not a multi-step configurator: shoppers are not moved through separate stages.

Preview Conditional Logic on the storefront

Conditional logic keeps dependent choices hidden until the shopper makes the parent selection.

How It Works

  1. Select the option you want to conditionally show/hide.
  2. Enable Conditional Logic in its settings.
  3. Set the condition type: ALL conditions must match, or ANY condition can match.
  4. Add conditions referencing other options and their expected values.

Set up Conditional Logic on an option

Pick the dependent option, enable conditional logic, and define the parent option value that controls it.

Logic Operators

  • ALL (AND) — Every condition must be true to show the option
  • ANY (OR) — At least one condition must be true to show the option

Condition Rules

Each condition compares a referenced option's current value using one of two operators:

  • Equal — Show when the referenced option's value matches the specified value
  • Not Equal — Show when the referenced option's value does NOT match

You can also use the special "Unselected" value to check whether a customer has not yet made a selection on the referenced option.

Dependency Chains

Conditions can reference options that are themselves conditional. This creates dependency chains — for example, Option C depends on Option B, which depends on Option A. Podifai evaluates these chains automatically up to three levels deep.

Keep dependency chains simple. Deeply nested conditions can be confusing for both you and your customers.

Examples

  • Show "Engraving Font" only when "Add Engraving" badge is selected
  • Show "Upload Logo" only when "Custom Print" option is chosen
  • Hide "Gift Message" when "For Myself" is selected (use Not Equal)
  • Show "Thread Color" only when material is NOT "Unselected" (customer has picked something)

Let Shoppers Choose a Fixed Personalization Position

Use separate preview layers when shoppers should choose from fixed positions such as Top, Center, or Bottom:

  1. Create a Badge Group with Top, Center, and Bottom values.
  2. Create a separate Text Input, Image Upload, or visual option for each position.
  3. Place each option's Live Preview layer in its corresponding fixed position.
  4. Add Conditional Logic to each position option.
  5. Show the matching position option for each Badge Group value.
The shopper sees only the field for the selected position, while the editor keeps a separately positioned preview layer for each supported placement.

FAQ

What does Conditional Logic do in Podifai?

Conditional Logic shows or hides one custom option based on another option's selected value, so shoppers only see fields that apply to their choices.

What is the difference between ALL and ANY conditions?

ALL means every condition must match before the option appears. ANY means the option appears when at least one condition matches.

Can I show an option when another option is not selected?

Yes. Use the Unselected value when you need to check whether a shopper has not made a selection yet.

Can conditional options depend on other conditional options?

Yes. Podifai supports dependency chains where a conditional option depends on another conditional option, evaluated automatically up to three levels deep.

What are common uses for Conditional Logic?

Common uses include showing engraving fields only when Add Engraving is selected, showing upload fields only for custom print choices, and hiding irrelevant options after a shopper chooses a product style.

Can shoppers choose between several fixed personalization positions?

Yes. Create a Badge Group with choices such as Top, Center, and Bottom, create one text or image option for each fixed preview position, then use Conditional Logic so only the option matching the shopper's position choice appears.