---
title: "Validation Gadget Examples"
canonical: "https://kb.uconn.edu/space/IKB/28049670202/Validation%20Gadget%20Examples"
format: markdown
---
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](https://kb.uconn.edu/space/IKB/26054918191/Pre-populating+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](media://fbb84870-c037-4892-8f68-b860a08ac0bf)

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](https://bpir.uconn.edu/home/reports/university-organizational-structure/)


![image-20251014-192427.png](media://3c7d33d6-3050-44b3-8405-287658a47de5)



![image-20251014-190926.png](media://63b859ee-3630-4fff-b568-bc963a1fc0c9)

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

![image-20251014-190947.png](media://e643b04d-e655-4697-80a7-8f44ee7b7b4c)


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](media://709208cb-8d72-403c-8ada-580c40a8af87)