1

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.

jpmo22
  • 77
  • 8

2 Answers2

0

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.

0

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!

David Foley
  • 459
  • 4
  • 9
  • There is no EditRecords or submit buttons. I want to validate a structure from a REST API. The structure is a variable and cannot be on any page. – jpmo22 Apr 02 '18 at 13:51