I am working on an AEM project where the XFA form is rendered as HTML and am having an issue with validation of an textfield. I have a textfield where the user is supposed to enter a phone number. I set up the validation as follows: Object/Value - Validation Pattern - I set Validation, Edit, Display as a phone number. I check off both Validation Pattern Message and Validation Script Message and wrote in an error message in both. When the user types in non-numerals, and exits the field, if it is a PDF, an error message displays at that time and the border is highlighted in yellow. However, if the form is rendered as HTML, the border highlights, but the error message does not display. Instead, if the user clicks the field again or submits the form - the error message displays at that time. We want the message to display when the user exits the field as it is supposed to.
In fact, the ValidationState event has the same bug with HTML - the event does not occur when the user changes or exits the field.
I recall from past projects experiencing a similar bug when a form is rendered on a browser as a PDF.
Is this a bug? Or am I setting the field up incorrectly?