Following on from an earlier post from Carl, I have read the Gform Column Input section of the help.
Within my themes functions.php file I now have the following:
<?php
add_filter("gform_column_input_2_4_1", "set_column", 10, 5);
function set_column($input_info, $field, $column, $value, $form_id)
{
return array("type" => "select", "choices" => "First Choice,Second Choice");
}
?>
Form ID is 2
Field type is list
Field ID is 4
Field contains 2 columns (1 & 2)
Column I want drop-down in is 1
I would expect to see column 1 now showing as a drop down with the values First Choice & Second Choice being available, but I do not.
Can anyone point out my error?
Thanks
dvent