It sure is, the following example targets the first column of field 2 on form 6, you would place this in your functions.php file between the opening <?php and closing ?> tags
add_filter("gform_column_input_6_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");
}
Or if you want to specify values for each choice you would use this
add_filter("gform_column_input_6_2_1", "set_column", 10, 5);
function set_column($input_info, $field, $column, $value, $form_id){
return array("type" => "select", "choices" => array(
array("text"=>"First Choice", "value"=>"First"),
array("text"=>"Second Choice", "value"=>"Second")
));
}
Here's the relavant page in the documentation http://www.gravityhelp.com/documentation/page/Gform_column_input
Posted 11 years ago on Friday April 26, 2013 |
Permalink