Lead Capture Tools

MWilliams74
Member

Formatting Mobile Phone numbers on lead capture forms for SMS marketing

I'm trying to add SMS text messaging so have created a form to collect mobile numbers. However when the form is filled out, my contacts are not automatically subscribed to receive SMS texting because the numbers aren't formatted correctly. 

Here is the page with the form I’ve created:

<script charset="utf-8" type="text/javascript" src="js.hsforms.net/forms/embed/v2.js"></script>
<script>
hbspt.forms.create({
region: "na1",
portalId: "7178822",
formId: "af013726-a625-48dc-b2d6-1021101647e5"
});
</script>

The form is bringing numbers into the contact, but it won’t allow them to receive text messages Because of number formatting. I've reached out to tech support and they recommended I post here as I'll need to set up a workflow using a custom coded action to format the mobile phone number correctly. 

Any ideas? Anyway I can update the format of all my existing mobile phone numbers associated with contacts already?

 

Ugh. 

0 Upvotes
1 Reply 1
PamCotton
HubSpot Alumni
HubSpot Alumni

Formatting Mobile Phone numbers on lead capture forms for SMS marketing

Hey @MWilliams74, thank you for posting in our Community!

 

To format mobile phone numbers for SMS marketing in HubSpot, you'll need to use a custom-coded action in a workflow. Create a workflow that captures form submissions with the phone number field, then add a custom-coded action to format the numbers in E.164 format. Map the output field to the correct contact property, test the workflow with sample contacts, and then activate it. For existing contacts, set up a similar workflow to reformat their numbers. This should solve the issue and enable SMS texting.

 

I hope this helps.

 

Pam

0 Upvotes