Modern Checkbox Pro User Guide

Learn how to map checkboxes, control visibility, and customize the toggle experience. Transform standard checkboxes into intuitive, modern toggle switches on your BigCommerce storefront.

Getting Started

Modern Checkbox Pro automatically converts checkboxes into sleek toggle switches on your product pages. It gives you complete control over which options appear based on customer selections, creating a smoother shopping experience.

What Modern Checkbox Pro Does

The app works automatically once installed. All other settings are optional customizations to fit your specific needs.

1. Create Mappings (Basic Mode)

Mappings connect a checkbox to the field you want to show or hide. When a customer toggles the checkbox on, the linked field appears. When toggled off, it disappears.

Step-by-Step Setup

  1. Open the Modern Checkbox Pro app from your BigCommerce admin.
  2. Click the Add Mapping button.
  3. Enter the Checkbox Label exactly as it appears on your product page (e.g., "Add Gift Wrap", "Include Insurance").
  4. Enter the Target Field Label (the field you want to show/hide when this checkbox is toggled, e.g., "Gift Message", "Insurance Amount").
  5. Click Save Changes.
  6. Go to your product page and refresh to see the toggles in action.

Example Scenarios

The checkbox label and target field label must match exactly (capitalization matters). If you're not sure, check the product page source using browser DevTools (see "How to Find Label Names" below).

2. Visibility Behavior & Logic

Modern Checkbox Pro uses simple toggle logic: when a customer checks the box (toggles ON), the target field appears. When unchecked (toggles OFF), it hides.

Important Behavior Notes

If a customer hides a field that contains required information, your checkout may warn them. Test your product page thoroughly to ensure a smooth customer experience.

3. Styling & Customization

Customize toggle appearance to match your brand. Modern Checkbox Pro offers pre-built presets and granular controls.

Color Presets

Size & Shape Options

How to Apply Styling

  1. Open the Modern Checkbox Pro app.
  2. Go to the Styling tab.
  3. Choose your preset or customize colors.
  4. Select size and shape preferences.
  5. Click Save Changes.
  6. Refresh your product page—changes apply instantly across all toggles.
All styling choices apply globally to every toggle on every product. You don't need to configure styling per product.

4. Advanced Mode (For Complex Layouts)

Sometimes product fields are nested inside groups, use custom HTML structures, or have hidden labels. Advanced Mode lets you target these complex scenarios using CSS selectors and attribute matching.

When to Use Advanced Mode

Use Advanced Mode when Basic Mode doesn't work. Common cases include:

Advanced Mode requires technical knowledge of HTML and CSS. Only enable it if you understand how to find element identifiers. If you're unsure, contact support and we'll help you identify the correct selectors.

How Advanced Mode Works

Instead of matching visible labels, Advanced Mode matches elements using:

Step 1: Gather the Data You Need

To use Advanced Mode, you need to identify two things:

  1. The Checkbox to Watch: Identify what checkbox should trigger visibility.
  2. The Target Element: Identify what field should appear/hide.

You'll find this data using your browser's Developer Tools (DevTools). Here's how:

Step 2: Open Browser Developer Tools

A panel will open showing the HTML code of your page. This is where you'll find the identifiers you need.

Step 3: Find the Checkbox Identifier

  1. In DevTools, click the Inspect/Select Element button (usually a cursor icon in the top-left).
  2. Click on the checkbox you want to trigger the mapping.
  3. DevTools will highlight the checkbox element in the code.
  4. Look for one of these attributes:
    • id="some-id" — The unique ID (easiest to use).
    • class="some-class" — One or more class names.
    • data-attribute="value" — Custom data attributes.
    • Nearby text like <label>Gift Wrap</label> — The label text.
  5. Copy the identifier (right-click the element and select Copy → Copy selector).

Example: You want to find the checkbox labeled "Add Gift Wrap". In DevTools, you might see:

<input type="checkbox" id="gift-wrap-checkbox" name="gift_wrap">
<label for="gift-wrap-checkbox">Add Gift Wrap</label>

The identifier is: id="gift-wrap-checkbox" or the CSS selector #gift-wrap-checkbox

Step 4: Find the Target Field Identifier

  1. In DevTools, click the Inspect/Select Element button again.
  2. Click on the field that should appear/hide (the target).
  3. Look for identifying attributes: id, class, name, or nearby labels.
  4. Copy the selector (right-click → Copy → Copy selector).

Example: Your target is a text field for "Gift Message". You might see:

<input type="text" id="gift-message-input" placeholder="Enter your message">
<label for="gift-message-input">Gift Message</label>

The identifier is: id="gift-message-input" or the CSS selector #gift-message-input

Step 5: Configure Advanced Mode in the App

  1. Open the Modern Checkbox Pro app.
  2. Click Add Mapping.
  3. Instead of using Basic Mode, select the Advanced Mode toggle.
  4. In the Checkbox Selector field, paste the CSS selector or identifier you found for the checkbox.
    • If you have an ID, use: #gift-wrap-checkbox
    • If you have a class, use: .checkbox-label-gift-wrap
    • If you have a complex path, paste the full selector from DevTools.
  5. In the Target Selector field, paste the CSS selector for the field that should show/hide.
    • If you have an ID, use: #gift-message-input
    • Or match by attribute: input[placeholder="Enter your message"]
  6. Click Save and Test.
  7. Go to your product page, and toggle the checkbox on/off to verify the target field appears and hides correctly.

Common Advanced Mode Selectors

Scenario Selector Example
Match by ID #my-checkbox-id
Match by class .custom-class-name
Match by placeholder input[placeholder="Gift Message"]
Match by data attribute [data-field-id="gift-wrap"]
Match by element and attribute input[type="text"][name="gift_message"]

Troubleshooting Advanced Mode

Advanced Mode is powerful but requires testing. After saving a mapping, visit your product page and toggle the checkbox several times to ensure the target appears and hides reliably.

5. Catalyst Date Picker Fields (Advanced)

BigCommerce Catalyst storefronts use custom date picker implementations that often hide the underlying structure from basic selectors. When you hide a Catalyst date field, the date picker input might disappear but the label stays visible—or vice versa. This section shows you how to handle this.

Why Simple Selectors Don't Work

Catalyst date pickers are typically wrapped in custom containers with classes like relative, overflow-hidden, rounded-lg, and border. The actual input is inside this wrapper, and it's often identified by a numeric name attribute rather than an ID. Because of this layered structure:

Solution: Combined CSS Selectors

Use Advanced Mode with a combined selector that targets both the label and the date picker container. Here's a real example:

HTML Structure (from your Catalyst store):

<label for="_r_6_">Delivery Date</label>
<div class="relative overflow-hidden rounded-lg border">
  <input type="text" name="113" class="flatpickr-input">
</div>

Working Selector:

label:has(+ div input[name="113"]), div.relative.overflow-hidden.rounded-lg.border:has(input[name="113"])

What This Does:

Replace the number 113 with the actual field name from your store's product page.

Step-by-Step Guide to Find Your Selector

  1. Open the storefront product page in your browser
  2. Right-click the date field label and select Inspect
  3. Examine the HTML structure to find:
    • The label text (should match your field label)
    • The wrapper div classes (usually relative overflow-hidden rounded-lg border)
    • The input's name attribute (e.g., name="113")
  4. Copy the number from the input's name attribute (e.g., 113)
  5. Replace the example number in the selector with your number
  6. Open Modern Checkbox Pro and select Advanced Mode
  7. Paste your custom selector into the Field Selector field
  8. Save changes and test on the product page

Important Notes

Catalyst field structures can vary between stores. If your selector doesn't work, inspect the exact classes and attributes on your store's date field, then adjust accordingly.

6. Troubleshooting & FAQ

Toggles Don't Appear on My Product Page

Mapping Created But Toggle Doesn't Work

Target Field Not Showing/Hiding Reliably

Styling Isn't Showing Correctly

Toggles Work on Desktop But Not Mobile

Extra Visibility Options Are Showing That Shouldn't Be

Advanced Mode Selector Isn't Working

If you're stuck, take a screenshot of the issue and the product page URL, then contact support. We're happy to help troubleshoot Advanced Mode selectors.

7. Best Practices

Naming Conventions

Performance Tips

Accessibility

Testing Your Setup

Need more help?

Contact support and we’ll help you get everything working.

Contact Support