GravityForms - List Field with DropDown on entries column

一曲冷凌霜 提交于 2020-01-14 05:31:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!