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

Question

Question

Why are Fields Marked as Hidden?

asked on October 4, 2016 Show version history

Troubleshooting a problem with a form and looking at a fields in the CSS and JavaScript tab it shows that they have a CSS class of hidden assigned to them. I have checked the Classes for the fields in the Layout tab and there is no CSS class applied to them there with a value of hidden. Where is it coming from?

Version 10.1.0.619

1 0

Answer

SELECTED ANSWER
replied on October 4, 2016 Show version history

Hi Blake,

My initial thought would be to ask if the hidden class is being applied via any custom JavaScript?

Are there any field rules operating on those fields?

And what are those fields supposed to be, when they aren't hidden?

0 0
replied on October 4, 2016

Wow, not sure why I didn't look there. Thank you.

0 0
replied on October 4, 2016

No worries, Blake. Just to clarify though, you meant that they were being applied through the custom JavaScript, not because there were field rules?

0 0
replied on October 4, 2016

No, they were being applied with the field rules.

1 0
replied on October 4, 2016

Ah, okay. It seems like that does indeed apply the .hidden class, I take back my remark from earlier.

0 0
replied on October 5, 2016

As a side note... in case anyone is considering using the "hidden" CSS class in their own custom CSS, don't. wink

Forms uses that to do a bunch of other stuff, so it won't work the way you expect. If you need to hide stuff, just use your own CSS class with `display: none`.

1 0

Replies

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

Sign in to reply to this post.