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

Question

Question

Using CSS Classes to Hide Fields Breaks Look Up Rules and Field Rules

asked on February 18, 2016

I use a combination of Look Up Rules and Field Rules on a Form.  I have the look up populating certain fields that I want to be hidden from the user.  However, since our upgrade to 9.2 I can no longer use the hidden fields to populate other fields.

 

I have a table showing every inventory product available.  A series of drop down boxes limits what the user sees (division limits category choices, category limits product choices).  Certain items like pants or shirts also need additional fields like gender and size to show but certain items like handcuffs or flashlights only need the quantity field to show.

 

I had this accomplished by have a “show” choice in the database.  For example, on flashlight, “show size” would be null but for Cargo Pants, “show size” would be Yes.  I have matching fields on the form that are being populated by a look up.  Then I have field rules to only show the Size field if the Show Size field is not blank.

 

 

I want all the “Show” fields hidden from the user.

 

 

However, when I use a CSS class to hide the fields, my look up rules to populate Gender and Size no longer work.  In the screenshot below I hide the “show gender” field.  Now my “gender” field will not show up to give them a choice.

 

0 0

Replies

replied on February 18, 2016

It is a bug in Forms 9.2 that field rule won't be triggered if the criterion field has "hidden" class. The issue has been fixed in 10.

And there is a workaround for 9.2: remove the "hidden" class and use "{display: none}" on the fields that you want to hide.

Can you please try if it works? Sorry for the inconvenience.

0 0
replied on February 19, 2016

Is there a way to tell which field numbers they are when they are inside a collection block?

 

 

0 0
replied on February 21, 2016

The field numbers for individual fields inside collection show as below: q5 and q6 are for the two fields inside collection.

0 0
replied on February 22, 2016

I understand that my collection is q94.  What I need to find is the q numbers INSIDE my collection.  My java/css screen does not show me which number are inside the collection, 94 is the last line it shows me.  I am not looking to hide the whole collection just some of the fields in it.  The collection will be repeated when in use so I can't pull the fields I want hidden into a separate collection.

0 0
replied on February 24, 2016

Numbers inside collection should show.

Did you hide the collection q94? You need to unhide it to make it show as the picture in my previous comment.

0 0
replied on April 29, 2016

This issue has been fixed in Forms 10. (Field rule can be triggered when the criteria field has "hidden" class)

Thank you.

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

Sign in to reply to this post.