- Knowledge Base
- Marketing
- Forms
- Set up a phone number form field
Set up a phone number form field
Last updated: October 4, 2023
The default Phone number and Mobile phone number fields only accept numbers and the following characters that are commonly found in phone numbers: + - ( ) . x. You can further validate phone numbers in form submissions by restricting the length of the number a visitor is able to enter. You can also allow visitors to select their country from a dropdown menu to include a country code in their phone number.
Please note: phone number settings must be set on a form-by-form basis.
- In your HubSpot account, navigate to Marketing > Lead Capture > Forms.
- Click the name of an existing form or create a new one.
- Hover over the Phone number field and click the pencil icon edit.
- In the left panel, input a Minimum and Maximum number length. If a visitor inputs a phone number that does not meet these length restrictions, they will not be able to submit the form.
- To prompt visitors to enter a country code, click to toggle the Show country code dropdown switch on.
Please note: if you have the Show country code dropdown switch toggled on, the country code numbers will not be included in any number length restrictions.

- In the upper right, click Publish.
Forms
Thank you for your feedback, it means a lot to us.
This form is used for documentation feedback only. Learn how to get help with HubSpot.
