Using Date mask on my input fields is causing them to not work

  • Profile Image
    Asked on July 21, 2015 at 03:08 PM

    I have tried multiple date picker/date widgets and they are not working. Tried multiple browsers as well as preview on the jotform site. What's wrong?

  • Profile Image
    Answered on July 21, 2015 at 05:05 PM

    I took a look at your jotform: and I immediately see the issue.

    Now to understand the issue I will go over the fields.

    The only 2 date fields are:

    1. Today's Date
    2. Date Available to Start

    - Both are working properly.

    There are however 6 other textbox fields that have their mask set to resemble the input of the date:

    1. Employed From
    2. To: (Today's Date if Current)
    3. Emp #2 From
    4. Emp #2 To
    5. Emp #3 From
    6. Emp #3 To

    I presume that you had set the mask through the Properties window, where the notice is not as clear as it is over toolbar, but

    mm/dd/yyyy is not a proper mask format. Basically it is set to show that format and not to allow any entry to the field.

    Let me explain: The only characters that are accepted are @ for letter, # for a number and * for either a letter or a number.

    All other characters that are found are seen as fillers. For example you might want to have 123-456, or you might want to have 123/456 accepted, and this allows you to add any of them to your form - all except the 3 shown above.

    So all you should do is to either change the fields to date fields for easy date picking, or to change the mask to be in the following format:

    ##/##/#### (which means that you accept 2 numbers which are separated by a slash /, then another 2 numbers and another slash and finally 4 numbers).

    They can of course add any numbers in there like 99/99/9999, but it would probably help you in the screening if they do :)

    It is of course best to let them know that you are expecting certain format by adding the same to the label.

  • Profile Image
    Answered on July 21, 2015 at 05:59 PM

    OK. Thanks for your reply but I am pretty confused. At the top you said that the date fields were both working. Not on my PC. That's why I cobbled the date fields out of text boxes (ok, badly). But on my regular PC none of the active content is working so I dumbed down the forms to get them to work. 

    When I tried to put page breaks in, the form would not go to the next page when next was clicked. When I clicked the calendar date picker in the date boxes nothing would happen. When I clicked the print button, nothing would happen. I tried multiple browsers thinking it must be a browser setting... no joy. 

    No after your reply I went to my other PC and in fact all the above was working. Not on this pc. To my knowledge they are configured identically. any idea as to what might be the issue. I am ok just using my other machine to edit etc. but I am worried that someone will have their PC set up as mine is and the form will not work. Ideas?

  • Profile Image
    Answered on July 21, 2015 at 10:31 PM

    OK Duh. Rookie mistake. Bitdefender Antivirus Free was preventing the scripts from running. I didn't look there because it did not have a firewall associated with it but when I turned it off... all the scripts ran. Calendar pop up worked, etc. Sorry to bother you!

  • Profile Image
    Answered on July 22, 2015 at 03:26 AM

    I'm glad to hear that you managed to find the culprit, and thank you for sharing us the solution you have. This might help other users who have BitDefender as their antivirus.

    If you needed any assistance again, please feel free to contact us.

    Thank you.