Phone Number Validation

I have enabled phone number validation on one of my fields and it appears to cause a js error for missing ')' (I'm not sure how accurate the actual error is).

Looking at the add page in the setFields function, this is the field with validation enabled (and the complaint in chrome)

["CriticalPhone", [fields.CriticalPhone.visible && fields.CriticalPhone.required ? ew.Validators.required(fields.CriticalPhone.caption) : null, ew.Validators.custom(Phone Number)], fields.CriticalPhone.isInvalid],

This is a similar field without validation:

["RegularPhone", [fields.RegularPhone.visible && fields.RegularPhone.required ? ew.Validators.required(fields.RegularPhone.caption) : null], fields.RegularPhone.isInvalid],

I'm not sure if I'm missing something else in the config or if there is a bug for phone validation.

We have updated the UI, please download and try again.

I reinstalled but the issue still appears to be there.

After installing the new version, set the validator again, then re-generate, the correct generated code should be ew.Validators.phone now.

The FldValidate attribute was not set up correctly. Try also opening the project file with a text editor and manually change the line from:

<Field FldName="..." ... FldValidate="Phone Number"

to:

<Field FldName="..." ... FldValidate="PHONE"

Save the file. Open again with ASP.NET Maker and regenerate again.

Thanks. I made the change to the project file and that applied correctly. (I had previously tried changing the validation to another type then back to phone number but that didn't change the project file).