blackbaud / skyux-phone-field

0 stars 2 forks source link

Include a disable "country search" option #76

Closed Blackbaud-ScottKavanagh closed 2 years ago

Blackbaud-ScottKavanagh commented 4 years ago

Expected behavior

I am hoping that my team can make a contribution. We would like to have an option that will disable the country search from the phone input control. This would then only allow numbers for the default country which in our situation would prevent international numbers from being entered.

Background

The RE NXT Donation and Event Registration Form teams have encountered failures due to international phone numbers that can't be accepted by the RE Constituent API/RE7 DB. When this occurs the donation/registration flights will stall requiring manual intervention. Ideally we'd like to prevent international numbers from being entered by donors/registrants when RE7 hasn't been configured support them.

AB#1619746

Blackbaud-TrevorBurch commented 4 years ago

@Blackbaud-ToddRoberts - Thoughts on this? I chatted with Scott and the supportedCountriesISOs input may be an option here. However, it did come up that if you only support one country that we do still allow you to enter the country search state. Should we disable the button to trigger the country search if they only support the default country?

Blackbaud-ToddRoberts commented 4 years ago

agree that it doesn't make sense to have the country search if only one country is accepted.

Blackbaud-TrevorBurch commented 4 years ago

@Blackbaud-ToddRoberts - should we disable the button or should we hide the flag button altogether?

Blackbaud-ToddRoberts commented 4 years ago

i think disable, so that the user can at least see which country it's validating against

Blackbaud-SteveBrush commented 4 years ago

@Blackbaud-ScottKavanagh Reach out to Trevor Burch directly if you plan on contributing. Thanks!