- cmtoysAsked 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.
- JotForm SupportBJoannaAnswered on May 30, 2015 at 05:25 AM
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.
- cmtoysAnswered on May 30, 2015 at 04:11 PM
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?
- JotForm SupportEltonCrisAnswered on May 30, 2015 at 06:53 PM
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.
- cmtoysAnswered on May 30, 2015 at 11:38 PM
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!
- JotForm SupportEltonCrisAnswered on May 31, 2015 at 01:18 AM
It's our pleasure to help.
- JotForm SupportBJoannaAnswered on June 06, 2016 at 12:16 PM
I have moved your question to separate thread and we will provide you an answer there shortly.