CARVIEW |
Select Language
HTTP/2 301
date: Sun, 12 Oct 2025 23:28:11 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_image_choice_input_visibility/
server: cloudflare
x-redirect-by: Yoast SEO Premium
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
referrer-policy: strict-origin-when-cross-origin
fastcgi-cache: HIT
strict-transport-security: max-age=31536000; includeSubDomains
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=R519YXnl9UEzt4KWOtMtrIpzToSyqee3frP2FETm8nrFAYRTMXr53gCtihC6vuBGarOEVDEJgtubrg8Trztz3wGBaxK7pXRy03Lpvjp3iE6LXQBQ"}]}
cf-ray: 98da5f42cc65c1a6-BLR
HTTP/2 200
date: Sun, 12 Oct 2025 23:28:12 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
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=JyYnpPZCzbLV1PfpTQxLzR59vPI3Tm9woJy9TDoXJTqyng1saeTdm%2BSVvxnoDZWikcpxWrFkWdGqyELXPHbY%2FYcr94R02VoSqWHrjfBeUlBPCJ6x"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98da5f47ad12c1a6-BLR
gform_image_choice_input_visibility - Gravity Forms Documentation
gform_image_choice_input_visibility
Description
Allows managing the Image Choice field input visibility.
Usage
Applies to all forms:
add_filter( 'gform_image_choice_input_visibility', 'your_function_name', 10, 2 );
Applies to a specific form:
add_filter( 'gform_image_choice_input_visibility_FORMID', 'your_function_name', 10, 2 );
Parameters
Examples
Hide the choice inputs for all Image Choice fields.
Note: it will only hide the choice inputs when the choice label visibility setting is set to visible.
add_filter( 'gform_image_choice_input_visibility', function( $input_visibility, $field ) {
return 'hide';
}, 10, 2 );
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Since
This filter was added in Gravity Forms 2.9.
Source Code
This filter is located in includes/fields/class-gf-field-image-choice.php