Hi,
My contact form won’t accept +44 numbers, how do I change it and make it a mandatory field?
Hey AdamR1983,
Heddy from Gameball here.
you’ll need to go into the “Checkout settings” in your Shopify admin. From there, you can control whether the phone number is required or optional for customers. But if you’re looking to change the format or what types of numbers are accepted (like international or local ones), that might require a bit of extra tweaking with some custom coding. If you’re not comfortable with coding, you might want to reach out to a Shopify expert or developer to help you out. Sometimes even small changes can be a bit tricky depending on what you’re looking to adjust.
If you’re working with apps that handle customer information, check those settings too—they can override some Shopify defaults. Hopefully, this gives you a bit more clarity on how to move forward!
Hi @AdamR1983
It wont accept that number because it’s already a mandatory field possibly with a pattern matching requirement.
:warning:
Always backup themes before changing files
To be able to put in any number , you need to go to the contact us page template in the code editor and and customize the form by removing the novalidate attribute, or change the forms inputs required attribute or it’s pattern attribute etc etc; sometimes changing a themes javascript logic may be required.
Often in themes this is a result of developers ,and the internt as a whole , not knowing what a phone number can actually be similar to bad expectations of how human names are spelled or what an email can be
https://www.netmeister.org/blog/email.html
If you need this customization then contact me for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.