Input Mask: Unable to submit the form when the required input field with masked input is prepopulated by spreadsheet to form widget

  • Profile Image
    harishkota.general
    Asked on September 03, 2019 at 06:26 AM

    hi 


    URL https://form.jotform.me/92273309470457


    enter an email id in the field - Data entry volunteer email id

    then enter this number in the field - Data entry volunteer email id -

    607275309927

    and press Autocomplete fields. All mandatory fields get filled and a few others. Then try to submit, it will not submit as it will show up the field - "Student Contact/Whatsapp No" not filled even though it is filled

    This looks like a bug.


    regards

    Harish




  • Profile Image
    Jonathan
    Answered on September 03, 2019 at 08:59 AM

    I was able to replicate the error you described when test the form.

    1567515265zzz 2019-09-03 20.53.33.png


    Upon checking further, I found that the issue was due to the field using Input Mask option.

    1567515446zzz 2019-09-03 20.56.19.png


    Input mask function requires manual input -- so it will not work if the field was being filled in without the typing-in action (i.e. copy/paste or prefill methods).

    If you set the Input Mask option to NO/OFF it should work.

    I hope this help. Please let us know if issue persist.

  • Profile Image
    harishkota.general
    Answered on September 03, 2019 at 09:29 AM

    hi

    Sorry I did not understand your reply

    "Input mask function requires manual input -- so it will not work if the field was being filled in without the typing-in action (i.e. copy/paste or prefill methods)."

    If I am using the spreadsheet to form widget and pulling the data from the XLSX file, is it not considered pre-filled?

     

    regards

    Harish

  • Profile Image
    Jonathan
    Answered on September 03, 2019 at 09:46 AM

    I apologize for the confusion. By "manual input" I meant that there should be a typing action -- wherein you will manually type in the data in the input box (textbox field).

    So if you were using the widget to pull the data and pre-fill the textbox field, then there is no "manual" action.

    The Input Mask function will not be able to validate the inputted data if using "pre-fll" method.

    Can you try disabling the Input Mask option also.

    I did test on a test form previously, and it did work properly on my test form when Input Mask is OFF.



  • Profile Image
    harishkota.general
    Answered on September 03, 2019 at 10:42 AM

    Yes, it works without the mask, but then if the user wants to modify the pre-filled I don't have a way to compel them to a certain pattern. 

    Hope the problem is clear, anyway I will go ahead with removing the mask. I hope you can fix it in future

    regards

    Harish

  • Profile Image
    jherwin
    Answered on September 03, 2019 at 11:55 AM

    I will forward this as a feature request to our second level, although we cannot provide an ETA, we will keep you updated via this thread.

    Thanks.

  • Profile Image
    harishkota.general
    Answered on September 04, 2019 at 12:55 AM

    hi Jotform team

    I did one more check on this, the issue does not seem to be on the MASK, it is issue seems to be when i make this MANDATORY it has the constraint of flagging it even when data is there. Well you might say it should because it was not typed.

    If it does not recognize that there is data how is it able to store the same displayed value on submission. In the above e.g. I had another field PINCODE which also had a mask but was not mandatory and it kept submitting the pre-filled data without any issue. 

    You can check this behaviour in this form, it is test bed so no issues even if you submit


    https://form.jotform.me/92273309470457 


    This in my is a defect and not a new feature

  • Profile Image
    Kiran
    Answered on September 04, 2019 at 01:26 AM

    You are right. This seems to be a bug with the Input field when it is enabled with Input mask. The ticket is now changed to bug. While this is being investigated, you may consider disabling the input mask temporarily or enable the numeric validation for the Pincode field with Entry limit. 

    156757471404092019_100920.png

    Thanks!