| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 13:50:26 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_other_choice_value/
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=RTN8H8ZGChH6zeRwBKc8ekrK7nd9TiDYZsNZVTIayd0W78yOj5hPQqo8S2aXaj3PzaHblTmOAEpZAqHxQ8yU8BTn%2FD1tuF26lYNl%2Fc8Ul%2FtRq%2B7a"}]}
cf-ray: 9b5186cf5a4c5ace-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 13:50:26 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: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=xztopt1bJtsoVQn4YKWVdqjZj0%2BHUsNSaiGc49GT%2B%2BQTNov0dnVVxED8AdXbUL3TYT0j%2B9MMbDF7v5KKYdn%2FyCYnK%2Fk9ETQczceKuC%2BSI8pK5cxx"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b5186d66a575ace-BLR
gform_other_choice_value - Gravity Forms Documentation
gform_other_choice_value
Description
Use this filter to change the default “Other” text on Radio Button fields.
Usage
add_filter( 'gform_other_choice_value', 'your_function_name', 10, 2 );
Parameters
- $value string
The default value of the “Other” choice input.
- $field null | GF_Field
Null or the Field currently being prepared for display or being validated.
Examples
This example changes the text to “Enter your own value” for all fields.
add_filter( 'gform_other_choice_value', function( $value, $field ) {
return 'Enter your own value';
}, 10, 2 );
This example changes the text to “My Custom Text” only for a field with id 6 that is added to a form that has id 25.
add_filter( 'gform_other_choice_value', 'set_other_choice_value', 10, 2 );
function set_other_choice_value( $value, $field ) {
if ( is_object( $field ) && 6 === $field->id && 25 === $field->formId ){ // 6 and 25 to your field id and form id number.
$value = 'My Custom Text';
}
return $value;
}
Placement
This code should be placed in the functions.php file of your active theme.
Since
The $field parameter was added in 2.1.1.6.
Source Code
This filter is located in GFCommon::get_other_choice_value() in common.php.