简体   繁体   English

提交重力表后,在同一页面上显示内容

[英]When Gravity Form is submitted then reveal content on same page

Using Wordpress with Divi Theme. 在Divi主题中使用Wordpress。

When Gravity Form submit button is pressed and submitted I also want it to reveal a section on the same page. 当按下重力提交按钮并提交时,我也希望它在同一页面上显示一个部分。 Like a toggle reveal that submits the form at the same time. 就像切换显示一样可以同时提交表单。

I Enabled AJAX so the page doesn't refresh after submission but don't know how to reveal a section of page and submit at the same time. 我启用了AJAX,因此提交后页面不会刷新,但不知道如何显示页面的一部分并同时提交。 Any help welcome Thanks. 任何帮助都欢迎,谢谢。

There are a few ways to do this. 有几种方法可以做到这一点。 The easiest would be to put the section you want to reveal in the confirmation box within gravity forms. 最简单的方法是将要显示的部分放在重力表的确认框中。 Alternatively you can have the confirmation process re-direct to a specific page that has the same information as your first page, but with the new content on it as well. 或者,您可以将确认过程重定向到具有与首页相同信息的特定页面,但同时还要包含新内容。 Finally, (most complex but also most secure) you can setup the gravity forms to also add the user to a member group (using the "Groups" plugin), then have that groups plugin show and hide info based on group membership. 最后,(最复杂,但也最安全),您可以设置重力形式以将用户也添加到成员组中(使用“ Groups”插件),然后使该组插件根据组成员身份显示和隐藏信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM