Gravity Forms - 条目列上带有下拉列表的列表字段

GravityForms - List Field with DropDown on entries column

我使用 GravityForms 列表字段。我在此列表字段上使用多列。 我的问题是:对于一列,我可以得到一个包含多个选项的下拉菜单吗?

我可以在 PHP 中实现它,但不知道 API 可以使用。事实上,我只想在下拉列表中转换一个文本框字段。你有想法吗?

你可以在这里看到我想要的: http://img11.hostingpics.net/pics/854196c20150309154121.jpg

您可以使用一个过滤器:

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' );
}

更多细节:https://www.gravityhelp.com/documentation/article/gform_column_input/#examples

您也可以尝试使用 WordPress 目录中的 Drop Down Options in List Fields for Gravity Forms 插件。