问题
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
回答1:
You could also try the Drop Down Options in List Fields for Gravity Forms plugin from the WordPress directory.
回答2:
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
来源:https://stackoverflow.com/questions/35205256/gravityforms-list-field-with-dropdown-on-entries-column