How to set the placeholder to default in "Please select an option" for your Infinite Options bundle
Update (October 2026): The Custom JavaScript field in the Simple Bundles app block and app embed is deprecated. Add scripts with a Custom Liquid block or section in your theme instead, as shown in the steps below. Some screenshots may still show the old Custom JavaScript field while we update them.
If you already have code in the Custom JavaScript field, it keeps working for now, but we recommend moving it to a Custom Liquid block. Copy your code somewhere safe first: once you clear the field and save, the field disappears from your settings.
This guide will walk you through updating your Infinite Options bundle dropdowns to default to a "Please select an option" placeholder, rather than pre-selecting the first item. This setup helps improve customer experience and can reduce incorrect orders.
How to set this up
-
Open Your Online Store
- Go to your Shopify Admin > Online Store > Themes.
- Click "Customize" on your current theme.
-
Navigate to the Specific Bundle Page
- Use the page selector to locate and open the product page for the bundle you'd like to update.
-
Disable App Embed (if enabled)
- In the theme editor, click on "App embeds" in the left-hand panel.
- Locate the Simple Bundles embed and toggle it off.
-
Enable App Block for Infinite Options
- Follow our help guide here: Set up infinite options on Online Store 2.0
- Once the block is added, continue to the next step.
-
Add the script with a Custom Liquid block
- In the left sidebar, inside the product information section, click Add block and choose Custom Liquid. If your theme doesn't offer a Custom Liquid block there, click Add section and choose Custom Liquid instead.
- Copy the code from placeholder.js.
- In the Custom Liquid box, type
<script>on the first line, paste the code below it, then type</script>on the last line. It should look like this:
<script> // paste the contents of placeholder.js here </script>
The block doesn't display anything on the page, so you can leave it anywhere in the section.
-
Save the Changes
- Click "Save" in the theme editor.
The dropdown options should now default to “Please select an option” when customers visit your product detail page, instead of automatically selecting the first variant. This gives customers a clear indication that a selection is required.
The add to cart button will be blocked if any of the options are not selected
Important Notes:
Please note that this setup may depend on your theme’s structure, so the exact implementation might vary. If you’d like to explore this further, we’re happy to walk you through it and see what’s possible based on your theme.
Additionally, make sure that cart validation is enabled for Infinite Options in your store settings. This will help ensure that all required fields are filled out before the product is added to the cart.