Closed dayvough closed 1 year ago
This should now be handled by the UI Authenticator component via the sign-up attributes. If you are still experiencing this with that component please open a new issue in the UI repo as the component mentioned in the original post is now deprecated.
Currently the default dial_code is
+1
and all the options are available. What if we wanted to build something for a select number of countries, why can't we restrict it only to just say["+63"]
?Also as a side note, I know you can set the default dial code via formFields on AmplifySignUp BUT if you set your code like this:
You would end up with the "Username cannot be empty" error.
And I know that formFields overrides the usernameAlias but then now I'm lost as to how I can parse the phone_number with the dialcodes and country prefixes.