Hello,
I have a reactive application that has many inputs. Some are in forms, some are in a table outside the form etc. I know outsystems has its inbuilt mandatory validation within forms, but how do i easily enable this mandatory validation for those input widget that are within a table for example? Thank you!
Hi Low,
Within the table you can use customize filter that will help you.
For more help you can share something than we will check on that .
Regards,
Rajat
Hello @Low Nico
Refer this link:
https://www.outsystems.com/forums/discussion/90046/table-validation-of-inputs/
https://www.outsystems.com/forums/discussion/80724/how-to-validate-input-inside-a-table/
I hope this help
Thanks
Hi,
You can always place a form widget that has all inputs inside, just for validation purpose, removing all CSS classes that you don't need, and the built in validations will work
hi, if you are searching a validation for table you can use forge component , you may gets inputs from this post https://www.outsystems.com/forums/discussion/83612/validation-inside-table/,
Hello @Low Nico , the input widgets have 'valid' and 'validation message' variables. You can use 'If' conditions to your requirements and set (using assign) the 'valid' variable to false and put some message in 'validation message' variable which will be displayed in red below the input widget if it doesn't validate.
Hope this helps.
Tejas Mahale.
Hi @Low Nico
To enable mandatory validation for input widgets outside of forms in Outsystems, you can manually trigger the validation logic since the built-in form validation only applies to inputs inside forms.
Here’s a general approach to enable mandatory validation for input widgets outside a form:
Add Validation to Individual Widgets:
Create a Custom Validation Logic:
Trigger the Validation Action:
Handle Invalid Inputs:
Please do let me know if you need anything specific.