Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to set a formatted string in PhoneField component without selecting the select box?

How to set a formatted string in PhoneField component without selecting the select box?

JH12
Shopify Partner
3 0 2

Hi, everyone.

I'm trying to figure out a way to force the user to select the country from the country select box or automatically set a formatted string(`+[countryCode][local phone number]`) based on the country code of the buyerIdentity in the cart object without selecting the country select box. 
Is it possible to apply either way?

Or can I catch or detect the country select box is selected?

Replies 0 (0)