(07) 3117 2300Call us now or click to request a free quote

Making Gravity Forms process a custom form in 3 easy steps

by lauren on January 10, 2012

in Gravity Forms

A problem I have found in the past is being able to code my own web form just the way I want it, whilst still allowing the powerful Gravity Forms plugin to do all the hard work behind the scenes. So after building a smooth jQuery based web form, I thought I’d try and make Gravity Forms process it to see how hard it could be. Here’s how I did it…

1. Using Gravity Forms, I created a copy of my custom form by creating a plain form that has the same fields.

2. Next, I changed all of the ‘name’ values on my inputs to match the ones Gravity Forms generates. (Preview the form to find out what these are)

3. Then I added these three lines of code into the PHP file that processes my form:

$form_id = 1;
require_once(GFCommon::get_base_path() . “/form_display.php”);
GFFormDisplay::process_form($form_id);

- Tom Shorrock, Web Developer

Leave a Comment

Previous post:



SEO Training Brisbane - 22nd February

Click for details

SEO Workshop - Learn Search Engine Optimisation

 


 

Our Services: SEO Brisbane

                               

Locations: Queensland NSW Victoria WA SA NT Tasmania

Resources: SEO articles

Head Office