When you use a Input Password widget in your web screens or web blocks, the following runtime properties are available:
Id: Identifies the widget in the HTML of the web screen or web block.
Read only. Text type.
Valid: Indicates whether the data the end-user typed is valid.
When inputs are submitted, the platform automatically performs two validations: If the input is mandatory, checks if the end-user filled it. It also checks if the data submitted by the end-user complies with the data type of the variable associated with the input.
If any of these two validations fails, the widget Valid property is set to False.
To implement your own server-side validations, simply assign this runtime property. In the render stage, the HTML of widgets that have the Valid runtime property set to False, is set with the Not_Valid class. Learn how to Validate End-User Inputs.
Read / Write. Boolean type.
ValidationMessage: Text message displayed next to the widget that explains why the input is not valid. If the Valid runtime property of a widget is set to True, the ValidationMessage is set with an empty string. If it is set to False, the ValidationMessage is set with a Default Validation Message.
When implementing your own server-side validations, assign a text to this runtime property, to explain the reason for the input being invalid.
The ValidationMessage is rendered in HTML as a <span class="ValidationMessage"> element following the HTML <input> element. See how widgets are translated into HTML tags. You can change the look and feel of the validation messages by customizing the ValidationMessage style in the style sheet.
Read / Write. Text type.
About Runtime Properties | About Input Password Widget | Input Password Widget Properties | Widgets and HTML Tags