我使用GravityForms列表字段。我在此列表字段上使用多列。我的问题是:对于一个专栏,我能得到一个带有倍数选项的下拉列表吗?
我可以在PHP中实现它,但不知道API会使用什么。实际上,我只想在下拉列表中转换一个文本框字段。你有什么主意吗?
你可以看到我想在这里:http://img11.hostingpics.net/pics/854196c20150309154121.jpg
发布于 2016-02-05 22:56:12
有一个过滤器可以使用:
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' );
}更多deets:input/#examples
https://stackoverflow.com/questions/35205256
复制相似问题