I’ve been trying to figure out how to make the dropdown require a selection before adding to cart. I’ve managed to figure out how to do that for the text area but I am having trouble with the dropdown portion. Currently only the text area is required but the dropdown can bypass and go straight to the cart without making a selection. The below is the code I’ve been using in the custom liquid code section. I am currently using Studio theme. Thank you in advance for your time and help.
If you ever need to create similar custom options in the future, I recommend using the Easify Product Options app (which offers a free plan). This tool allows you to effortlessly create custom options in just a few minutes, without coding. By using it, you’ll save a significant amount of time and effort .
Here’s a quick guide on how to set up similar options using the app:
After setting up your options, all that’s left is to select the relevant product(s) where you want to incorporate these custom options, and you’re good to go!