Validation Gadget Examples

Validation Gadget Examples

Example #1

Some Kuali Build Users want to prevent submissions from outside of a particular division. Here we will outline one way to do this using the Validation Gadget:

The first step is leveraging the LDAP Integration on your form. For instructions on how to set up this integration, please see the Knowledgebase section labeled Prepopulating a Form with User Details

Make sure to add the Department Number as an linked auto-filled gadget on the form.

 

image-20251014-171741.png

You will then want to drag and drop a Validation Gadget (located under “Advanced Gadgets”) on the form and configure it to display that error message that will be shown to the submitter if they do not meet the conditional logic requirements.

In this example, we only want submitters who belong to the ITS Division to be able to submit the form - so we set our error text and logic to do so.

In order to know each department number, you may view the University Org list on this website: University Organizational Structure | Budget, Planning and Institutional Research

 

image-20251014-192427.png
The visibility rules evaluate the Department Number field and determine that any value not included in the predefined list is considered invalid.

 

 

image-20251014-190926.png

The logic above would include all 8 department numbers that belong to ITS

image-20251014-190947.png

 

If the submitter of the form does not belong to one of these 8 departments, the configured red error text will appear, and the form will not be able to be submitted.

If the user attempts to submit the form, it will not allow them to, and this pop-up message will appear:

image-20251014-191654.png