gpw91
Canvas Initiate

Show fields based on drop downs: 1 - 5

Jump to solution

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!

Dictaphone 3.JPGDictaphone 4.JPG

0 Kudos
Reply
2 Replies
claudiaurbanski
Process Pupil

Re: Show fields based on drop downs: 1 - 5

Jump to solution

@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.

View solution in original post

0 Kudos
Reply
gpw91
Canvas Initiate

Re: Show fields based on drop downs: 1 - 5

Jump to solution

Thank you, adjusting to this worked perfect! 🙂

0 Kudos
Reply