Skip to main content
Nintex Community Menu Bar
Question

validateRequiredFields function on model object


Forum|alt.badge.img+9

There is a function available on the skuid model object, called “validateRequiredFields”, but I couldn’t find any documentation on it. What does it do?

Translate
Did this topic help you find an answer to your question?
This topic has been closed for comments

Forum|alt.badge.img+13

Hey Moshe -

The model version of validateRequiredFields will iterate all of its registered lists and call validateRequiredFields on each list.  In short, doing the same thing described near the bottom of this page (http://help.skuid.com/m/11720/l/205336-skuid-ui-list) but for each list, instead of just a single list.

The list version of validateRequiredFields will iterate fields that are rendered and if that field is required, will ensure that it has a value.  The return value of this function is a list of messages containing any errors.  If there are items in the array returned, you can call handleMessages on an editor (e.g. pagetitle, wizard step, etc.) to display them.

Hope this helps!

Translate

Forum|alt.badge.img+13

Documentation for Model.prototype.validateRequiredFields( ) has been added. In a nutshell, what Barry said is correct 🙂

Translate

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings