Skip to content

Conditional logic

Show or hide options based on other selections

Use with AI

Use with AI

Ready-made prompts Connect your AI to Pasilobus Install the CLI

This page

View as MarkdownPlain text of this page Open in ClaudeAsk about this page Open in ChatGPTAsk about this page

Ready-made prompts

Fill in the parts in angle brackets, then paste into any assistant.

Step by step on your store

Read https://help.pasilobus.com/product-options/conditional-logic.md. Walk me through conditional logic in Product Options for my store, step by step. My theme is <theme name> and I want <what you want to happen>.

Ask your own question

Read https://help.pasilobus.com/product-options/conditional-logic.md. Answer this about Product Options on my store: <your question>.

Ask Shopify Sidekick

In your Shopify admin, ask Sidekick about Product Options. It searches these guides.

Connect your AI to Pasilobus Beta

Our MCP server lets Claude, ChatGPT, OpenClaw and other MCP clients use your Pasilobus apps. It is in beta and open to every Pasilobus account: you sign in with it when your assistant asks. Tools that change your store are marked as changes, so your assistant asks you first.

https://cloud.pasilobus.com/mcp

In Claude Code, add it, then run /mcp to sign in:

claude mcp add --transport http pasilobus https://cloud.pasilobus.com/mcp

In Claude on the web or desktop, go to Customize › Connectors › Add custom connector and paste the address. In ChatGPT, OpenClaw or another client, add it as a custom connector (MCP) with the same address.

Install the CLI

npm install -g pasilobus

Run your apps from the terminal or a coding agent. These only read, so they are safe to try:

pasilobus product-options groups

List product-option groups, their options and products

pasilobus product-options orders

Recent orders that contain product-option customizations

pasilobus apps lists your apps on the store; pasilobus <app> help lists what each app can do. How it works

On this page
  1. What is Conditional Display
  2. Setting Up Conditions
  3. Condition Types
  4. Condition Operators
  5. Visibility Action
  6. Multiple Conditions
  7. Example Workflows
  8. Preview
  9. Plan Requirements

Conditional logic shows or hides options based on other selections. Create dynamic forms that adapt to customer choices — showing relevant options while hiding irrelevant ones for a cleaner, more intuitive experience.

What is Conditional Display

Conditional display lets you set rules like:

  • Show "Engraving Text" only when "Add Engraving" is checked
  • Show "Gift Message" only when "Gift Wrap" is selected
  • Show specific size options only for certain colors
  • Show a date picker only when "Schedule Delivery" is toggled on

This keeps your forms focused and avoids overwhelming customers with irrelevant fields.

Setting Up Conditions

  1. Edit the option you want to conditionally show or hide
  2. Scroll to Conditional Display and toggle Add Conditions
  3. Click Add Condition
  4. Select which option the condition depends on
  5. Choose the operator
  6. Enter or select the value to match (if applicable)
  7. Set the Visibility Action — whether conditions should show or hide the option
  8. Save

Condition Types

Conditions can be based on two sources:

  • Other Option - Trigger based on what a customer selects in another option within the same group
  • Shopify Variant - Trigger based on the selected Shopify product variant (e.g., show different options depending on the Size or Color variant)

Condition Operators

  • Is equal to - Matches when the other option's value exactly equals your specified value
  • Is not equal to - Matches when the value does NOT equal your specified value
  • Is filled - Matches when the customer has entered any value (not empty)
  • Is empty - Matches when no value has been entered
  • Is checked - Matches when a checkbox or toggle is turned on
  • Is unchecked - Matches when a checkbox or toggle is turned off
  • Is in list - Matches when the value is one of several comma-separated values

Visibility Action

Choose what happens when conditions are met:

  • Show when conditions are met - The option starts hidden and appears only when the condition is satisfied
  • Hide when conditions are met - The option starts visible and disappears when the condition is satisfied

Multiple Conditions

Add multiple conditions and choose how they combine:

  • All conditions must be met (AND) - Every condition must be true for the action to trigger
  • At least one condition must be met (OR) - Any single condition being true triggers the action

Example Workflows

Engraving Options:

  1. Switch: "Add Engraving?"
  2. Text Input: "Engraving Text" — shows when "Add Engraving" is checked
  3. Dropdown: "Font Style" — shows when "Add Engraving" is checked

Gift Services:

  1. Checkbox: "This is a gift"
  2. Dropdown: "Gift Wrap Style" — shows when "This is a gift" is checked
  3. Paragraph Text: "Gift Message" — shows when "This is a gift" is checked

Variant-Based Options:

  1. When Shopify variant "Size" equals "Custom" → show "Custom Width" and "Custom Height" number fields

Preview

The option group preview in the sidebar reflects conditional logic in real time. When you interact with options in the preview, dependent options appear and disappear just as they would on your storefront.

Plan Requirements

Conditional logic is included on every plan, Free included.

Talk to a person.

The people who build our apps answer support themselves. Send us a message or email us, and a person replies, usually within one business day. There's no chat.