Skip to main content
Nintex Community Menu Bar

Required Field based on drop down selection (Validation)

  • June 8, 2020
  • 2 replies
  • 19 views

Forum|alt.badge.img+1

Hello All,

 

I am working on a making a field required based on a drop down selection.

 

I have a drop down with 6 items in it, if the user selects "Disagree" or "Strongly Disagree" from this drop down then I want to require comments.

 

I have two validation formulas I have tried they are as follows:

 

contains(JobPerfQuest, 'Disagree')

and

JobPerQuest=="Disagree" || JobPerfQuest=="Strongly Disagree"

 

They only halfway work though.  The form is STILL throwing an error even if I enter comments when selecting one of these options.

 

Any assistance is greatly appreciated!!!

 

2 replies

Forum|alt.badge.img+8
  • Novice
  • June 8, 2020

Hi @ShellBelle80 

you are almost there. You want to invalidate the control, if one of your choices have been selected AND the control is empty.

Like this:

isNullOrEmpty({Self}) && (JobPerQuest=="Disagree" || JobPerfQuest=="Strongly Disagree")

Please select the {Self} option from the Form Controls section


Forum|alt.badge.img+1

You sir are my HERO!!


Thank you so very much for the quick reply!

 

I appreciate it, I will mark it as solved!!!!!

 

Have a great day!