代码之家  ›  专栏  ›  技术社区  ›  Saif Morshed

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

  •  0
  • Saif Morshed  · 技术社区  · 9 年前

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

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

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

    3 回复  |  直到 9 年前
        1
  •  9
  •   Dave from Gravity Wiz    8 年前

    有一个过滤器可以使用:

    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

        2
  •  0
  •   user82320    8 年前
        3
  •  -1
  •   Erik van Beek    2 年前

    有更新版本的 Gravity Forms List Dropdown 可用于更新版本的重力形式。