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

Question

Question

Check if field is hidden using JavaScript

asked on February 24

I am trying to display a custom HTML field before other fields if they are revealed via field rules. The disclaimer only needs to appear once. The issue is if I apply this disclaimer on each of the field rules then I get an overlap of the field which causes issues revealing it on the form. Is there a way to verify if the field is shown so I can utilize that as a flag to display the disclaimer. An example of this is I want to show q92 if either q94 or q95 are shown. 

0 0

Answer

SELECTED ANSWER
replied on February 25

Not sure if you are aware of this, but the nested condition field rule you are looking for is available in modern form:

 

If you prefer to keep using classic form, you may consider update the form like this:

Add one additonal single line field, and set it with formula =IF(PO_Routing="PURCHASING DEPARTMENT", "show", IF(Remove_Purchasing="PURCHASING DEPARTMENT", "show", "hide"))

Then update field rule to use this single line field as condition and remove the PO Routing and Remove Purchasing fields from condition.

1 0

Replies

replied on February 24

If would be easier if you create a separated field rule to show/hide q92, with condition being the combination of the conditions for field rules on q94 and q95.

Can you show us your field rule settings?

3 0
replied on February 25 Show version history

I have more than just the two from the screen shot. What is currently happening is that since the disclaimer is repeated for each the most lowest rule on the list still hides the disclaimer since the logic returns false. What I'm looking for is something in this structure.

  When Any

       When All - Trigger 1 - Show disclaimer

       When All - Trigger 2 - Show disclaimer

0 0
SELECTED ANSWER
replied on February 25

Not sure if you are aware of this, but the nested condition field rule you are looking for is available in modern form:

 

If you prefer to keep using classic form, you may consider update the form like this:

Add one additonal single line field, and set it with formula =IF(PO_Routing="PURCHASING DEPARTMENT", "show", IF(Remove_Purchasing="PURCHASING DEPARTMENT", "show", "hide"))

Then update field rule to use this single line field as condition and remove the PO Routing and Remove Purchasing fields from condition.

1 0
replied on February 26

Thanks for the assistance. I have it working with some JavaScript for now. I'll try to switch the form over in the future.

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

Sign in to reply to this post.