| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 10:14:56 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_field_map_choices/
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=dweH%2BqyW5AuuUDxdDvzVEsBzPyhm2ZJGvpI42Cp6h8dX2HlLDpGcpPiTeJQlKL532MaeW5PZcELHhf5nwr%2Bq6lVFkx2q8YG00DHUkO8S0TmC79VN"}]}
cf-ray: 9b504b221bdbc1ba-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 10:14:56 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=wEIoi76HuF0s%2Bt%2BRZ3PZOQu7eQSpZsAzyhfg5tbD9OlzcNnabtte7XeqSH6jBxQtd%2BH1MSHdl1iClUHRN7V497b%2Bjc4Nh8esBLsg2FMBIurQiKYq"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b504b285fcfc1ba-BLR
gform_field_map_choices - Gravity Forms Documentation
gform_field_map_choices
Description
The gform_field_map_choices filter can be used to override the choices available in the field map drop down.
Usage
add_filter( 'gform_field_map_choices', 'your_function_name', 10, 4 );
Parameters
Examples
1. Add new choice
add_filter( 'gform_field_map_choices', function( $fields, $form_id, $field_type, $exclude_field_types ) {
$fields[] = array( 'label' => 'The new choice', 'value' => 'new_choice' );
return $fields;
}, 10, 4 );
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in \Gravity_Forms\Gravity_Forms\Settings\Fields\Generic_Map::get_value_choices() in includes/settings/fields/class-generic-map.php.
Since
This filter was added in Gravity Forms 2.5.