What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How to prepopulate phone number field with input maskAsked by cmtoys on May 29, 2015 at 09:53 PM
Using the prepopulate.jotform.io app to prepopulate a form, I have a field that has a mask, specifically a phone number field with the input mask enabled. When I try to prepopulate it with the app, the form does not have the phone number pre-filled, no matter what form I use, e.g. all numbers, with or without parentheses, with or without dashes, etc.
If I remove the input mask, it works fine. Is there a way to make this work, or do I have to choose? Thank you.
I have cloned and tested your form and I was able to reproduce problem you mentioned. Phone number field is not populating when input mask is enabled.
Possible workaround is to create text box field instead of phone field, then set validation of that field to be numeric and then add input mask to that field.
Then when you use prepopulate app that field will be prepopulated even if input mask is turned on.
Here is my demo form where I added text box field that is numerical with input mask.
Also prepopulate demo form:
Feel free to clone it and test it.
Hope this will help. Let us know if you need further assistance.
Thank you! It looks like this will work great. Is there any reason that the quicktools Phone field would be preferred over a masked text box like you describe above? The only thing I really see is some integrations (doesn't appear that any I use) may pass the Phone number, but they wouldn't know to pass this text box?
As far as I know they both work similarly with any integrations. They can be mapped with text boxes from the 3rd party apps since the value are passed as text not by field types. However, if you come across any issues, let us know and we'd be happy to assist you.
By the way, I tried prepopulating phone number with input mask enabled and it seems working fine.
If it doesn't work with the prepopulate app, you can manually insert it on the generated URL. This guide will help: http://www.jotform.com/help/71-Prepopulating-the-fields-to-your-JotForm-via-URL-parameters
If you need further assistance, let us know.
Thank you again! I like using the app - it's easier for my staff, although the other option is good to know. The workaround using a text box and an input mask seems to be working fine though. Thanks for the speedy responses!
It's our pleasure to help.
I have moved your question to separate thread and we will provide you an answer there shortly.