[SOLVED] Field mask not working SC 10.3.000

I just updated to SC 10.3.000 and form fields with a field mask are not working correctly for data entry in editable grid view mode. If ‘validate with mask’ is selected, the form blocks entry of what should be valid user input.

I had phone number fields set to a mask of (###) ###-#### and they used to work for data entry. I see in the current documentation that # is not listed as a mask character, so I have tried using (999) 999-9999 and (xxx) xxx-xxxx without success.

Expected behavior: If field mask is set to (999) 999-9999 and user types 1234567890, the field will show (123) 456-7890. The form will store 1234567890 in the table. When in grid view mode, the grid will display (123) 456-7890.

Actual behavior: The user types1234567890. The field displays 1234567890. If ‘validate with mask’ is selected, the field will turn red and show ‘invalid data’ unless the user types exactly (123) 456-7890. The form then saves “1234567890” in the table. The grid view correctly shows (123) 456-7890 for values already in the table.

Editing to add screenshots:

I upgraded from version 9.13 to version 10.3. I do not know if version 10.0 through 10.2 had this issue.

This is how it worked on Version 9.13:
The field start like this:
image

As soon as I type a 1, it inserts the leading “(”
image

If I tab out of the field without 10 digits, I get an error:
image

If I enter 10 digits as the mask requires, the field is valid. The (, ), space, and - are automatically inserted/shown:
image


Version 10.3.000

The field initially looks the same. If I type just a “1”, it does not insert the leading “(”
image

If I tab out of the field without 10 digits, it is invalid as before. If I enter 10 digits, it is still invalid:
image

If I type exactly “(123) 456-7890”, typing the special characters and spaces, then it is valid:
image

This looks like the SC 9.13 screenshot, but in the earlier version the user did not enter the filler characters, only the numbers.

If I try to submit, I get an error:
image

However, after the error, the field is now correctly formatted but still highlighted in red!
image

If then submit the form a second time, it saves without error.

I have some code running in onAfterInsert, but nothing on any other form events.

@Alan_F,

Please, verify this topic:

Best regards!

@Danilo_Lima - Thank yo for the quick response. I replaced the js file with the second one from that thread and it seems to be working correctly now.