How to Create Conditional Rules for LensFlow in SB Prescription Eye Lens
Conditional Rules in LensFlow (Eye Lens App) let you show or hide lens options during the prescription process. You can create rules based on customer selections in previous steps or based on prescription (RX) values such as SPH, CYL, Axis, Add Power, or PD.
This helps ensure that customers only see the lens options that are suitable for their prescription. You can hide unnecessary fields, restrict unsupported lens types, and prevent invalid combinations automatically.
This guide will help you set up and manage Conditional Rules easily, allowing you to create a smooth and accurate prescription experience for your customers.
Steps:
Hide Lens Options by Manual Selection (Step-Based Rules):
You can hide lens options based on what the customer selects in previous steps.
- Access Configure Steps : Shopify Admin → Apps → SB Prescription Eye Lens → Prescription Flows → Click Edit (✏️) → Configure Steps → Click Settings (⚙️) on the desired step

- Open the Conditional Rule Tab : Inside the step settings, click on the Conditional Rule tab.

- Configure the Conditional Rule: After clicking + Add Conditional Rule, set up the rule as follows:
- Select the Previous Step that will trigger the rule (for example, Step 1: Choose your lens type).
- Under “One of these options”, select the option(s) that will activate the rule.
👉 This means the rule will apply when the customer selects these options.
- Under “These options in this step”, choose the lens options you want to control.
- Finally, choose the action:
- Show Only → Only the selected options will be visible.
- Hide → The selected options will be hidden

- Click Save Rules, then click Update Flow.

Hide Lens Options Based on RX Values:
You can also hide lens options automatically based on prescription values.
- Open Lens Flow: Go to Shopify Admin → Apps → SB Prescription Eye Lens → Lens Flows → click the Edit (✏️) icon next to the Lens Flow you want to configure.

- Select Lens Flow and Open Option Settings: **Select the **Lens Flow where you want to add the Conditional Rule.

- Choose the option under Add-on Products (With Price) or Lens Options (No Price). Locate the specific lens option you want to control and click the Settings (⚙️) icon next to it to configure and set the Conditional Rule.

- Enable RX Limits :In the option settings popup, check the box “Enable RX limits for this option”. Then configure the required RX value conditions (SPH, CYL, ADD, etc.) as needed.
After setting the limits, click Save to apply the RX-based rule for that lens option.

- Select Evaluation Mode: Choose how the prescription should be validated:
- Both Eyes Must Match – RX values must fall within the defined range for both eyes.
- At Least One Eye Matches – RX values must match for either eye.
- Strongest Eye – The system evaluates based on the eye with the higher prescription value.
- **Set PD Limits (Optional): **
You can define minimum and maximum limits for:
- Single PD
- Dual PD (per eye)
If the customer’s PD is outside the defined range, the lens option will be hidden automatically.
You can define minimum and maximum limits for:
- Single PD
- Dual PD (per eye)

- Set Prescription Range : Enter minimum and maximum values for:
- SPH (Sphere)
- CYL (Cylinder)
- Axis (0–180)
- ADD (Progressive)
If the entered prescription values fall outside the defined limits, the lens option will not be available.

Final Step
Then click Update Lens Flow to ensure the changes reflect on the storefront.
Final Step: Test the Conditional Rule
After completing all configurations, click Save Rx Limits, then click Update Lens Flow.
Finally, test the rule on your storefront..
If you need help setting up translations or want assistance tailoring them for your store, feel free to contact our support team at [support@setubridgeapps.com]() or on WhatsApp: +91 8511963839. We’re happy to help 😊
Updated on: 16/02/2026
Thank you!
