Require Selection From Drop Down

Hello,

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.

Choose Your Card

Your Personalized Message:

Hi @judu ,

When it comes to select element, we need to have a selected option. Please use the code below instead. I have ser Blank as a default option


Hi @made4Uo , thank you for your reply. Is there an option to make it a requirement to make a selection?

Hi @judu ,

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 :hugs: .

Here’s a quick guide on how to set up similar options using the app:

  • Begin by creating a new option set:

  • Add an option for “Choose Your Card” using the Dropdown or select from the 25 different option display types available within the app.

  • Next, add an option called “Your Personalized Message” using the Text Area option type.

  • 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!

This streamlined approach will make the process hassle-free and efficient for you :raising_hands: .