| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 07:47:02 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_column_input/
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: EXPIRED
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=hGbkpF0eOzJzS%2BeeXPH%2FOxq4KLeHtlAGM7beExZjYLZXDd%2FFUYoWr2jPE1wVkaBchPqSaS5eVRks46Zs9hclSQwx%2F7a5rRLmzo6%2Bblp0R4mtt4B%2B"}]}
cf-ray: 9b4f727d0b8cd817-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 07:47:03 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=8UeEOV3fpxr2EnddbdcdYJnVN%2Fy67JDdlc4PRNLsODo9Q8ZvskO1PPZjmR4DEUR2T71Pc9NB6cY5NgI%2BjceyIYB19FjoXBUqaPgdqnhL%2BE23Skd4"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4f7284bfdbd817-BLR
gform_column_input - Gravity Forms Documentation
gform_column_input
Description
This filter can be used to specify a different input type for a list field column. Currently supported field types are “select” (Drop Down) and “text” (Text Field)
Usage
add_filter( 'gform_column_input', 'set_column_input', 10, 5 );
You can also target a specific column by adding the form id, field id and column number after the hook name. (format: gform_column_input_FORMID_FIELDID_COLUMN)
//This filter declaration targets the first column of field whose id is 2 in form whose id is 6
add_filter( 'gform_column_input_6_2_1', 'set_column_input', 10, 5 );
Parameters
- $input_info array
The input info array to be filtered, in the following format:
- $field Field Object
Current field.
- $column string
Current column name.
- $value string
Currently entered/selected value for the column’s input.
- $form_id integer
ID of current form.
array(
'type' => 'select',
'choices' => 'First Choice,Second Choice',
);
// OR, if values need to be specified for each choice, the following format can also be used:
array(
'type' => 'select',
'choices' => array(
array( 'text' => 'First Choice', 'value' => 'First' ),
array( 'text' => 'Second Choice', 'value' => 'Second' ),
),
);
Examples
This example changes column 1 of list field 2 in a form with id 187 to a drop down.
add_filter( 'gform_column_input_187_2_1', 'set_column', 10, 5 );
function set_column( $input_info, $field, $column, $value, $form_id ) {
return array( 'type' => 'select', 'choices' => 'First Choice,Second Choice' );
}
Placement
This code should be placed in the functions.php file of your active theme
Source Code
This filter is located in GF_Field_List::get_list_input() in includes/fields/class-gf-field-list.php