How to make a field mandatory based on Dropdown selected field Value in Nintex forms for Office 365

This Nintex tutorial, we will discuss how to make a field mandatory based on Choice field value in Nintex forms for office 365.

Here, we will make a Description filed mandatory when the selected value of the Status dropdown list equal to “Closed“. Let us see how to make Nintex forms mandatory field based on the dropdown list selected value.

Nintex forms mandatory field validation based on the dropdown list selected value

In this Nintex form example, I have an IT Request form in SharePoint Online for Office 365. In the form, I have taken a dropdown list which has few values like Open, Assigned, InProgress and Closed. 

My requirement here is, if a user selects the Closed option from the drop-down list, then the user has to put a description mandatorily. For other options, putting description is not mandatory. We will discuss here how to achieve this using Rules in Nintex Forms for Office 365 SharePoint Online.

Step 1: Create a list and go to your list tab, click on “Nintex forms“. you will get Nintex designer view as shown below.

validation is based on choice nintex forms
validation is based on choice nintex forms

Step 2:  Click on “Multiple line Text-box “, go to the Control tab and click on “Add Rule“. Then RULES panel will be appeared right side of the Nintex form.

how to make a field required is based on choice nintex forms
how to make a field required is based on choice nintex forms
  • Enter Name for the control.
  • Select Rule Type as a “Validation” from the drop-down.
  • In Condition, add the rule “equals(Status, ‘Closed’)“. Use this rule on the field you want to be validated.
  • In the Message box, enter the validation error as shown above.

Step 3:  If you have chosen Status “Closed” from the dropdown it will make that field is required as shown below.

how to make a field required in nintex forms
how to make a field required in nintex forms

How to add Validation for Drop-down List in Nintex Forms

Now I will show you, how we can validate a drop-down list in Nintex Forms for Office 365. We will validate for mandatory validation for the dropdown list in Nintex Forms.

Step 1: Click on drop-down control-> go to Control tab->Click on Add Rule button. Enter the details as shown below. In Condition section , add a rule for drop-down checking empty or not  “(isNullOrEmpty({Self}))“. Use this rule on the field you want to be validated.

nintex form required field
nintex form required field

Step 2: You will get an error message when you click on the submit button without selecting Status from the drop-down as shown below.

validation is based on choice nintex forms
validation is based on choice nintex forms

You may like following Nintex tutorials:

In this Nintex tutorial, we discussed how to validate make drop-down list mandatory in Nintex Forms. As well as we will see how to make a field mandatory based on a drop-down list selected value in Nintex Forms for Office 365 SharePoint Online.

>