What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi @All can you anyone help to me, I want to add validation on select box where valid option is '

U02HE8RULAG
U02HE8RULAG Posts: 19 🧑🏻‍🚀 - Cadet
edited August 2022 in Help

Hi @All can you anyone help to me,
I want to add validation on select box where valid option is 'countries.iso.NZ'
if anyone select another country it should throw error message "Only NZ allowed"

@U016DGFJN6Q @ULL9CA6CB @UKJSE6T47 @U03PBK95S8K @U0330P4KPQD @UKEP86J66

Comments

  • U01F7P3D9NH
    U01F7P3D9NH Posts: 60 🧑🏻‍🚀 - Cadet

    You could either only show NZ in the dropdown by adding the logic to CheckoutAddressFormDataProvider or add a constraint to the field in the CheckoutAddressForm

  • U02HE8RULAG
    U02HE8RULAG Posts: 19 🧑🏻‍🚀 - Cadet

    I am looking to add constraint but not success where i can set the value if it is only NZ