-
amberstoneAsked on June 27, 2019 at 10:08 AM
Hi,
When someone completes my form I wish to be able to send an email that is then processed a by Textlocal.com and sent to my customer as an SMS.
In order to do this i need to be able to take the customers phone number and then remove the first digit but then add 44 to the start of the number and at the end adding @txtlocal.com
It should be fairly easy to do I imagine if you can kindly help?
for example my number 07792589841
would be for the recipient of my jotform as follows 447792589841@txtlocal.com
Can you help please?
Thank you
James
Page URL: https://instructorcollege.uk/ -
Welvin Support Team LeadReplied on June 27, 2019 at 11:38 AM
Hello James,
I'm sure this is possible with two or three steps in the form. I'll work on this, and let you know later.
-
Welvin Support Team LeadReplied on June 27, 2019 at 12:04 PM
Here's a demo form: https://www.jotform.com/91774677529980. I believe this will accomplish your requirement.
I find no way to copy the values from the Phone field, so I've switched it to our Short Text Entry field and enabled input masking:
Guide for input masking: https://www.jotform.com/help/381-Getting-Started-with-the-basics-of-Input-Masking.
My input masking is: (###) ########.
Next, I used the Substring widget to copy the values from the mobile field. I have two, the first widget copied the area code, and second copied the mobile number.
Widget link: https://widgets.jotform.com/widget/substring.
Guide to add a widget in the form: https://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form.
The widgets are set up this way:
1st widget:
2nd widget:
Next, I've added a new Short Text Entry that would be the final field to build the email for Textlocal.
Next, I've set a condition to copy both substring widget with the domain of textlocal, see below:
Lastly, you only need to select the final textbox as the recipient of the form through the autoresponder email.
https://www.jotform.com/help/26-Creating-a-Form-Autoresponder
I hope that works.
You can clone my form and feel free to use it. To clone: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL.
-
Welvin Support Team LeadReplied on June 27, 2019 at 12:07 PM
I forgot to mention that you can hide the fields:
https://www.jotform.com/help/434-How-to-Hide-Form-Fields
Here's a clone of the same form I've shared without the fields, hidden: