listvalidation
Reactive icon

ListValidation

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 02 October 2022
 by 
5.0
 (1 rating)
listvalidation

ListValidation

Details
Validation on input widgets within a List, and set a custom corresponding validation message.
Read more

Validation within a List

  • This component has the function of validating a given condition in a list of inputs and placing the validation message if the condition is not met.
  •  The error message can be placed in each of the inputs by using this component.


To Implement

  • In the list of inputs that you want to include the validation message, you must put in the Attributes the disable-virtualization = True


  • Then in the Input widget, you must put in the Attributes the inputName = "inputName-" + <List>.CurrentRowNumber


  • Then you must use the InputListValidator action, which can be used in OnChange or in another action where you want to check and validate the list.

The Inputs of the InputListValidator action are:

        * Index: Set the CurrentRowNumber here.

        * IsValid: Set the condition here. Indicates whether according to the conditions to be validated if it is valid (true) or not (false).

        * MessageError: Set Message to be displayed here. Message to be displayed when conditions are not met.


Demo

  • For assistance, there is the demo module to see how to implement the component.


Inspiration

  •  Inspired by the following questions on the forum:

Link1 / Link2 / Link3

Release notes (1.0.0)
Reviews (1)
by 
2024-10-01
in version 1.0.0
Nice component!
It's pretty good to use and the demo is helpful to understand how it works.
I had to customize it to work with the 'TextArea' type, but, the JS code, in general, is clean and easy to change.
Team
Other assets in this category