How can I require a drop down selection at checkout?

I have drop down select required and i need a value to be selected par customer at check out

this is my code

Veuillez spécifier la SAQ désignée pour la cueillette de votre commande

When customer press check out button, it does not do the validation when no value

why ? what i need to add ?

tks

Hello @Sergio999 ,

On cart page it will never work in this way.

I suggest to write a custom JS function which will first check your select value. If it finds value then return true so default checkout functionality ill work else prevent checkout button to perform its action and shoe alert or custom message with select box.

Thanks

hi

i found this but does not work

Hi

i am not an expert in JS

somebody can help me on what would be the script to be able to validate if the field is empty and trigger error message

would really appreciate . And wont need to manage customers with empty field

tks