How do I get an html/css form to post to Gravity Forms?

筅森魡賤 提交于 2020-01-04 05:25:16

问题


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.


回答1:


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"



来源:https://stackoverflow.com/questions/24944725/how-do-i-get-an-html-css-form-to-post-to-gravity-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!