Validate Structure Mandatory Attributes in OutSystems

797 views Asked by At

I have a variable with structure type. This structure has some mandatory attributes.

How can I validate if this variable has all mandatory attributes filled out correctly?

Do it manually is not an available option.

2

There are 2 answers

0
Miguel Seabra Melo On

Unless the origin of the data in the structure is a screen Form, whereby you can set the appropriate Inputs' Mandatory attribute to True (thus automatically enforcing that something is typed in on submit), the only other way is to check it manually.

1
David Foley On

Try creating an invisible EditRecords widget and make it the validation parent of all the fields in your struct. Then, make sure your summit button has client side validation, and make sure the fields you want to check are actually mandatory on the struct. Good luck!