commercelayer-react-checkout icon indicating copy to clipboard operation
commercelayer-react-checkout copied to clipboard

Province/state field is required for all countries

Open tomtuv opened this issue 1 year ago • 3 comments

Description

We can't go to the next step if we don't fill in the province/state field.

Steps to Reproduce

  1. Fill in the address form and choose a country like France
  2. Leave the province/state field blank
  3. The submit button is disabled

Expected Result

The province/state field should only be required for countries like the United States and Canada. It would be best to show it only to those countries.

Actual Results

The province/state field is required and visible for all countries.

Capture d’écran 2024-02-14 à 10 22 45

tomtuv avatar Feb 14 '24 09:02 tomtuv

we can plan to add a settings for that, so that you can show the field only if there are predefined values for the country. I'll update the issue once we will tackle it

malessani avatar May 24 '24 15:05 malessani

Hi @malessani Would you happen to have any updates on this situation?

Right now is not given any error feedback, the "Can't be blank" message is not showing up and is very confusing for the user.

Thank you fo the support

rodrigobarona avatar Aug 21 '24 19:08 rodrigobarona

Hi @rodrigobarona we should be able to add a setting to make the field optional per market. I'll keep you posted

malessani avatar Aug 21 '24 19:08 malessani