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

Question

Question

Field rules still appear even if radio button is hidden

asked on September 11, 2017

I'm not sure if this is because a radio button cannot be un-selected after it has been selected, but I have some hidden fields that doesn't show until the radio button is checked "yes". For the radio button to even show first though a checkbox needs to be checked. Upon un-checking the checkbox the radio button field is gone, but the fields that are supposed to be hidden only if the radio button is selected "Yes" stays. Below are the screen shots and description of what's happening to clarify this.

 

First picture is once "Promotion" is checked the "Are they changing department" Radio button shows up.

 

Once "yes" is selected Old Department, and New Department shows up. Title (old) and Title (new) are already there since Promotion was selected.

If I find out I made a mistake and Un-check Promotion, the Old Department and New department still shows up.

 

These are my field rules for those section:

The top one shows the "are they changing department" if Promotion or Title is checked. Then the second one is to show old and new department, while hiding a different department list above if the radio button is checked "Yes".

 

0 0

Replies

replied on September 11, 2017

I was able to reproduce the same behavior. It looks like Forms does not ignore the value as far as Field Rules are concerned, so even if the field is hidden the rule still applies.

One option would be to drop Old/New department into their own Section with the header/title hidden so it would be invisible to the user, then hide/show that under the first rule. For example, the first rule would make them "available" and the second rule would then make them "visible" so even if you selected "Yes" it would hide the section if the first rule wasn't satisfied. 

OR, you can try flipping the rules around the other way, for example:

Hide - Old Department

Hide - New Department

WHEN ALL of the following is TRUE

  • Are they changing departments - IS NOT - yes
  • What is the change? - Promotion - IS NOT CHECKED
  • What is the change? - Title - IS NOT CHECKED

 

You may or may not need to split "Department (varDepartmentList)" off into its own rule depending on what you need it to do, but that is easy enough.

1 0
replied on May 4, 2020

If you are using JavaScript to manipulate the data or using CSS to hide/show the fields, you may need to do a bit of detective work to determine the affects they are having on your form.

 

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

Sign in to reply to this post.