Hello,
There are validations for input widget to prevent using from continuing. However, if a input widget is embedded in a table, you are not able to validate it anymore. Is there a way to perform validation on input widgets that are embedded in a table? Thank you!
Use javascript to make the input invalid by using the id from the input.
EDIT:
Now using the outsystems logic
Look at this now :)
Check the OML.
Kind Regards,
Márcio
You can try adding an event listener like onchange on your input widget and then create an action for the validation you need.
Hello thank you for your suggestion, with the onchange event, I can do the validation but it does not prevent the user from saving the incorrect input. Or is there a way to prevent that?
To prevent saving when the input is invalid, create a local variable that will be assigned to the input validation of the input widget to false in your onchange event.
Hope this helps.
What @Alec Manabat said.
Check this post
https://www.outsystems.com/forums/discussion/80724/how-to-validate-input-inside-a-table/
Hello, I downloaded the sample oml from the other post but the assign to set input to invalid is empty. What should the assign look like? Thank you!
Thank you so much this worked great!
Hi @Low Nico
Can you give some screenshots or elaborate it more in which scenario you are facing the issue ?