GeoIP fails to populate phone field in Forms

I’m running into an issue with the phone number field in Forms feature.

  1. Field type: Phone
  2. ID: phone_number
  3. “Country picker” is enabled
  4. Default value is bound to {{context.user.user_metadata.phone_number}}

On render, the country picker shows a ? icon instead of the expected country flag. The text input works, but the flag never resolves.

What’s odd:

  • The geo IP detection works correctly — on the next step of the login flow (where I can inject custom code) it has already pegged me to Denver, US.

  • There doesn’t seem to be any option in the Field Settings UI to override or force a default country.

  • I don’t see a code hook for this specific field type in the no-code form editor.

Has anyone solved this? Is there a way to:

  1. Force the default country (e.g., “US”) when the picker can’t detect it, or

  2. Debug why the picker renders ? even though IP lookup is clearly working?

  3. Configure something somewhere that I’m missing?

Any guidance appreciated.

Ahhh, it hit me this morning. The default value being blank was the issue. Just setting that to “+1” as a fallback worked, which I did as a flow with a conditional. Thank you for your participation in this process. :slight_smile:

1 Like

Hi @ryan17

Thanks for letting us know that you have found the solution to the issue at hand!

If you ever have any other questions or issues regarding Auth0, let us know!

Kind Regards,

Nik