You are viewing limited content. For full access, please sign in.

Question

Question

Field Rules not hiding/showing properly

asked on March 25, 2015

Hi All,

 

I have gone through a couple of answers and I know that this has been discussed before. However, I could not find a post where this issue is being discussed.

My problem is that when I start trying to generate rules for more than one field, the rules seems not to work somehow. I do not want to create a "section element" that contains all the fields, because I already use sections to split the form.

In one of the answers, someone replied:

 

  1. When you're configuring field rules, you don't need to specify Show or Hide for every single field on the form. If you say "Show A and B when value is X" and "Show C and D when value is Y", Forms will automatically hide C and D when the value is X even if you did not explicitly state it in the rules. This should allow you to create shorter rules.

 

I have tried only, Hiding fields, or only Showing fields with no success.

My issue is that I have a drop-down list and based on the selection, some fields need to be shown/hidden. One option can hide/show more than one field, and this is when Forms is not evaluation the conditions as I expect. I have this scenario: I have four OPTIONS 0,1,2,3, and eight fields A,B,C,D,E,F,G,H. I want to achieve the following:

Option 0 (blank or no selection): hide all fields.

Option 1: show only fields B, D, F, G, H. the rest of the fields should be hidden.

Option 2: show fields C, D, E, F, G, H. the rest of the fields should be hidden.

Option 3: show fields A, F, G, H. the rest of the fields should be hidden.

 

I also read that this could be achieve by using javascripts. However, my knowledge of scripting is the best for these situations.

 

Hope someone can help,

 

Cheers,

 

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on March 26, 2015 Show version history

Hi Andres,

This can be achieved by Field Rules. You can try adding the following rules:

1. show A when option is 3;

2. show B when option is 1;

3. show C,E when option is 2;

4. show D when option is 1 or 2;

5. show F,G,H when option is 1 or 2 or 3.

0 0

Replies

replied on March 29, 2015

Hi Rui,

 

It worked! It's good to know how the logic behind the field rules.

Thanks for your help!

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.