我如何获得HTML / CSS表单发布到Gravity Forms? [英] How do I get an html/css form to post to Gravity Forms?

查看:216
本文介绍了我如何获得HTML / CSS表单发布到Gravity Forms?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个'Photoshop(.psd)到WordPress的着陆页转换项目,我开始转换到一个基本的html / css页面,包括一个不起作用的,但是正确样式的表单。



项目范围扩大,需要在WordPress中发布用户条目到Gravity Forms插件。



如何修改我现有的html / css形式(因为我已经创建了样式)并将条目提交到WordPress仪表板中的Gravity Forms表单?



我想在不从头开始的情况下执行此操作抓取HTML和表单样式。


$ b HTML / CSS版本 http://dev.sweatergod.com/safeguard/



WordPress模板版本 http://dev.ira123.com/self-directed-ira -llc-landing-page /



两人都没有Gra vity Forms表单集成了。

解决方案

观察Gravity窗体API是最简单的方法,如果你不想牺牲您当前的样式,将会将您当前的表单POST发送到重力表单API。

http:// www.gravityhelp.com/documentation/page/Web_API#POST_.2Fentries

POST /表单/ [表单ID] /条目
URI: / gravityformsapi / forms / [表单ID] /条目

描述:为指定的表单ID创建/添加条目

输入:包含将被添加的条目集合的JSON字符串



输出:描述结果的本地化消息:创建成功的条目


I have a 'Photoshop (.psd) to WordPress' landing page conversion project that I began by converting to a basic html/css page including a nonfunctional, but correctly styled form.

The project scope expanded with the need to post user entries to the Gravity Forms plugin in WordPress.

How do I need to modify my existing html/css form (since I've already created the styles) and submit the entries to the Gravity Forms form in the WordPress dashboard?

I'd like to do this without starting from scratch on the html and form styles.

HTML/CSS Version: http://dev.sweatergod.com/safeguard/

WordPress Template Version: http://dev.ira123.com/self-directed-ira-llc-landing-page/

Neither one have the Gravity Forms form integrated yet.

解决方案

Looking at the Gravity forms API, the easiest way, if you don't want to sacrifice your current styles, would be to have your current form POST to the gravity forms API.

http://www.gravityhelp.com/documentation/page/Web_API#POST_.2Fentries

POST /forms/[Form ID]/entries URI: /gravityformsapi/forms/[Form ID]/entries

Description: Creates/adds entries for the specified Form ID

Input: A JSON string containing a collection of entries that will be added

Output: A localized message describing the result: "Entries created successfully"

这篇关于我如何获得HTML / CSS表单发布到Gravity Forms?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆