| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 16:08:10 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_is_hidden/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=BFEM8oOXVw9YHk4VJKYb%2Bk6QdhvmYkgZ0TLYgGHXQoG6X9Wz7wwySkqNQT%2FK55ukJJIGHQn0QEHZai0Jj5TJIhShUd4Mb0crWHcZF4Aj07%2F30MAW"}]}
cf-ray: 9b4a133149e65ace-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 16:08:11 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: EXPIRED
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=ic3g3xLmtuAb0z5Uie%2FG1YCzN%2FyuGvbTKUzsitmEop11eDwx46E8gbW9mjGLrnzUDjfETwSk%2BhwrVUIXFItjTN%2FdBP0XUmEeVsc9CeswJL25ByaD"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4a133939fb5ace-BLR
gform_is_hidden - Gravity Forms Documentation
gform_is_hidden
Description
The gform_is_hidden filter allows developers to customize whether a field is hidden by conditional logic. This is useful in Conversational Forms, where all fields but the current one are hidden.
Usage
gform.addFilter( 'gform_is_hidden', function( isHidden, field ) {
// Custom logic here
return isHidden;
}, 10, 2 );
Parameters
Examples
Customize the visibility by marking a field as hidden only if it is wrapped in a .gfield element, excluding those with the class .gfield_hidden_product, and has the data-conditional-logic attribute set to ‘hidden’.
gform.addFilter( 'gform_is_hidden', function( isHidden, field ) {
return field.parents('.gfield').not(".gfield_hidden_product").attr("data-conditional-logic") === 'hidden';
}, 10, 2 );
Placement
Reference the article Adding JavaScript Code to the Frontend of Your Site.
Source Code
This filter is located in gravityforms.js.
Since
The filter was added in Gravity Forms 2.8.10