【问题标题】:Show "Thank you message" in same popup window in Magnific popup with gravity forms在具有重力形式的 Magnific 弹出窗口中的同一弹出窗口中显示“感谢消息”
【发布时间】:2019-10-30 10:52:02
【问题描述】:

我想继续显示“感谢您与我们联系!我们会尽快与您联系。”提交表单后,在同一 Magnific 弹出窗口中的消息。在表单提交后的那一刻窗口关闭。我使用的代码:

<script>
  jQuery(function ($) {
    $('.open-popup-link').magnificPopup({
      type: 'inline',
      closeOnBgClick: false,
      fixedContentPos: true,
      closeOnContentClick: false
    });
  });
</script>
  .white-popup {
    position: relative;
    background: #FFF;
    padding: 20px;
    width: auto;
    max-width: 500px;
    margin: 20px auto;
  }
<div id="test-popups" class="white-popup mfp-hide">
  Popup content
  <?php echo do_shortcode('[gravityform id=4 title=false description=false]'); ?>
</div>
<a href="#test-popups" class="open-popup-link">Contact Us</a>

【问题讨论】:

    标签: jquery wordpress gravity-forms-plugin


    【解决方案1】:

    如果你设置了“ajax”参数,只会刷新表单标记而不是整个页面。

    [gravityform id="4" title="false" description="false" ajax="true"]

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-11-25
    • 2014-06-19
    • 1970-01-01
    • 1970-01-01
    • 2015-05-14
    • 1970-01-01
    • 2017-08-13
    • 2017-05-16
    相关资源
    最近更新 更多