Skip to main content
Nintex Community Menu Bar

Show fields based on drop downs: 1 - 5

  • December 15, 2020
  • 2 replies
  • 5 views

gpw91
Forum|alt.badge.img+1

Hi All,

 

I have created a form with a drop down options containing (1, 2, 3, 4 and 5) and based on this, a custom 'repeating section' appears, e.g. the user has to fill in details of their devices, if they select 1, one panel appears, if 2, 2 identical panels appears, 3 - 3 panels etc. 

 

I have this working perfect, except when I pick 3 or 4, 4 panels appear, and I cant see what I'm doing wrong. I've attached screenshots of rules for 3 and 4, Rules are definitely applying to the right panels and only those panels, I figure it must be something I'm doing wrong in rule: Dictaphone 4. Any help will be much appreciated, thank you!

9706i8B7006D5C7ADA7D7.jpg9707i5592E5EE87DA1A1B.jpg

2 replies

Forum|alt.badge.img+11
  • Scholar
  • December 16, 2020

@gpw91 With dropdowns, I try to use "And" or "contains" instead of "or"
and(Numberofdictaphones== '1' , Numberofdictaphones== '2',isNullOrEmpty({Self}))

and(contains(Numberofdictaphones, "1"), contains(Numberofdictaphones, "2"))

if it doesn't work - I would say check the dropdown values, sometimes it doesn't actually have the value "1" - it may look something more like 1;item. To check this add a calculated value control to your form and preview and see what values you get. You can also use parselookup to get the correct value in the rule.


gpw91
Forum|alt.badge.img+1
  • Author
  • December 17, 2020

Thank you, adjusting to this worked perfect! 🙂