'GravityForms - List Field with DropDown on entries column
I use GravityForms List field. I use multiple columns on this list fields. My question is : for one column, can I get a drop-down with multiples choices ?
I can implement it in PHP but no idea for API to use. In fact I want just transform a textbox field in dropdown. Have you got an idea ?
You can see that I want here : http://img11.hostingpics.net/pics/854196c20150309154121.jpg
Solution 1:[1]
There is a filter you can use:
add_filter( 'gform_column_input_187_1_1', 'set_column', 10, 5 );
function set_column( $input_info, $field, $column, $value, $form_id ) {
return array( 'type' => 'select', 'choices' => 'First Choice,Second Choice' );
}
More deets: https://www.gravityhelp.com/documentation/article/gform_column_input/#examples
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dave from Gravity Wiz |
