How to Hide a Gravity Forms Field with Css

I would like to hide one of the fields (product field) entirely using CSS. How can I do this?

2 Answers

You'll want to use the gf_invisible class on the "CSS Class Name" setting for the field. This class is available out of the box with Gravity Forms and hides the field by positioning it off the screen rather than "display: none;. Gravity Forms will not count product fields that are "display: none;" towards the total.

More information here:

3

You can add a Custom CSS Class via the Appearance tab of the field (for example 'hide-field'. Than in css you add:

.hide-field{ display: none; }

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest