Skip to content
Help Center

How do I configure the default country for the phone number component in flow editor?

View MarkdownContact support2 min read

This question came from a member of the Persona community, a developer who wanted to change the default phone number country for device handoff to Canada.

By default, the country code for an Inquiry’s phone number component is set to the United States.

You can change the default country code for an Inquiry template by following these steps:

  1. Open the Dashboard.

  2. Click on Inquiries > Templates.

  3. Click on the Template you want to edit.

  4. In the flow editor, find or add a Module that collects a user’s phone number.

    Change phone number default country code img1

  5. Click the Edit button.

    Change phone number default country img2

  6. Click on the Phone Number field, where a user would enter their phone number.

    change phone number default country code img3

  7. In the popup panel on the right, click Data in the toolbar.

    Data tab in the phone number component popup panel

  8. At the right of the “Country code” field, click 3 dot icon and then select Edit field in fields table.

    Edit field option in the country code field menu

  9. Within the Field Editor open to the “Selected Country Code” field, you can find the “Default value” field in the Setup section.

    Default value field in the Selected Country Code field editor

  10. In its menu, change the Default value to the two-letter country ISO code that corresponds to your desired default country choice. For example, Canada is represented by CA.

    Selected Country Code default value set to CA

  11. In the top right corner, Save the Template, then Publish it.

The default country code will now be changed in that module’s phone number field. In the template preview, the Module will still display a US flag, but the property has been updated.

This answer was reviewed by Justin Sayarath, a product manager at Persona. FAQs, unlike other articles, are written to provide Persona Community members more specific answers to common questions. While we periodically review responses and answers, please note when this FAQ was last updated as information may have changed since then.

Last updated on .

Was this page helpful?If something is missing, let us know and we will take a look.
Thanks for the feedback. It helps us improve these docs.