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

Question

Question

Forms 11: Fields Still Showing Even Though Field Rule Conditions Are Not Met

asked on May 4, 2021 Show version history

I have a classic form that was created in Forms 10 and we upgraded to Forms 11. I added a field rule where it is set to show two date fields based on the selection of a radio button value to be set to Yes. When viewing the form, the two date fields show even though Yes is not selected. If I select No and then Yes again, they hide correctly.

Update: This works correctly when using a form created with the Modern Designer.

0 0

Answer

SELECTED ANSWER
replied on May 7, 2021

Looks like I overlooked a rule that was affecting the fields. My bad.

1 0

Replies

replied on May 5, 2021

The basic case with a radio button controlling two date fields works for me with the rule you've shown. Some questions:

  1. Dumb question: You made sure those are the correct variables and you don't have a _1 in there? (asking from experience)
  2. It looks like you used CSS on the form to get those TwoPerLine, does removing the CSS get it to work? 
  3. Do you have any sections on the form? Especially any involved in field rules.
  4. Are there other field rules acting on these fields that may get them to show by default? Triggering the no then yes means your rule works, but another rule is likely confusing the default state. 

 

It might be easier to open a support case with the process unless any of those questions above lead to insights. 

0 0
replied on May 5, 2021
  1. Yep, the correct variables are selected. Always good to double-check that.
  2. I just tried this and the field rule still does not work correctly.
  3. There are a couple of sections and the fields in question are in a section that has a field rule.
  4. We do not have any field rules that are acting on the same fields.
0 0
replied on May 5, 2021

Ok, I'm not liking the smell of answer 3. How many field rules are acting on the section that the fields are in? If just one, is that field rule set to "Hide the section if..."? Is that rule higher or lower than the rule shown? 

My guess is it's interpreting the section rule instead of rule directly on the fields on form load. The section rule is set to Hide based on conditions that are not initially met, so the entire section is show AFTER the previous rule is supposed to hide the fields directly. 

Could you send a pic of the full field rules page (if it's not too long)? Or remove the section field rule and see if that addresses the bug? 

0 0
replied on May 5, 2021

The section rule is set as rule #2. The rule on the fields that are within the section is set as rule #10.

The section rule is set to "Show" section "When any" of the following is true.

The field rule is set to "Show" field "When All" of the following is true.

0 0
replied on May 5, 2021

When the form is initialized, are any of the "When any" conditions met? Or should both rules default to the fields being hidden? 

We may need to investigate via a support case with your process. 

0 0
replied on May 5, 2021

Just opened a support case.

0 0
SELECTED ANSWER
replied on May 7, 2021

Looks like I overlooked a rule that was affecting the fields. My bad.

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

Sign in to reply to this post.