FieldControlProperties.getValidationText

Returns the HTML5 validation message com.ebasetech.xi.api.Text. This text can be used to override the browser's default validation messages when HTML5 input validation is used - this applies when any of the HTML5 display types are used or when one of the HTML5 validation attributes is used e.g. min, max, pattern etc.

It's advisable to be cautious when overriding the browser's default validation messages. The browser may have many validation messages for any given type depending on data entered by the user, whereas it is only possible to enter a single replacement message. Reasons to override the browser's default might be: to create a specific message when pattern validation is used, to create a message in a specific language etc.

To change the validation message text:

 controls.Fldh0AG3.validationText.setText("Please enter a valid social security number");
 

returns Text