When you use a Input 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.
TypedValue: Holds the data the end-user typed in the form.
If the value typed by the end-user cannot be converted to the variable's data type, the variable is set with a null value. If this happens, you can check the value of the TypedValue runtime property to perform validations or try to convert the value typed by the end-user to the data type of the variable it is associated with.
During rendering stage, if the TypedValue is incompatible with the data type of the widget's variable, the TypedValue is used to display the widget's input.
If the Input widget is used inside a Table Records or a List Records, the TypedValue runtime property is always set to an empty string.
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 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 Web Input Widget | Web Input Widget Properties | Web Widgets and HTML Tags