【问题标题】:how to retrieve a value passed in the url through a gravity forms form field如何通过重力表单表单字段检索在 url 中传递的值
【发布时间】:2021-08-19 11:54:33
【问题描述】:

我在 html 中有一个按钮,我在其链接中添加了一个变量,我想从重力表单中检索它。

 <div>
 <a  href="/test/?test name">
</div>
 

【问题讨论】:

    标签: parameter-passing


    【解决方案1】:

    在重力形式编辑模式中,单击要使用参数填充的字段。在“高级选项卡”下,单击“允许动态填充字段”复选框。

    添加您的 url 参数,在本例中为“test_name”。

    确保您的 url 链接看起来像这样:
    href="/test/?test_name=迈克"

    假设您的重力表单嵌入在“测试”页面中,您应该会看到您的字段填充了字符串“Mike”。

    【讨论】:

      猜你喜欢
      • 2015-10-20
      • 1970-01-01
      • 1970-01-01
      • 2011-11-03
      • 2019-01-31
      • 1970-01-01
      • 1970-01-01
      • 2014-12-04
      • 1970-01-01
      相关资源
      最近更新 更多