Improve Gravity Forms – Gravity Forms Addons Plugin

November 5, 2009

in Plugins,WordPress

Gravity Forms Plugin for WordPress

Download Gravity Forms Addons Plugin on WordPress.org

Gravity Forms is Great. Let’s Make it Better.

To view one pane, the other panes close. What a pane in the ass! :-)

To view one pane, the other panes close. What a pane in the ass! :-)

I really enjoy the Gravity Forms plugin. It’s a great form generator seemingly based on making a Wufoo-style experience for a WordPress form plugin.  It’s super-simple to use and set up, and I’ve set up my website request form using Gravity Forms.

Some little things make a big difference

One thing that has frustrated me about the plugin is that when selecting the type of field to add to the form, I had to click a box to show it, like the image to the right.  I knew that it would be a simple thing to fix…so I did.  Enter the Gravity Forms Addon plugin.

Add Edit Link

Gravity Forms Edit LinkWhen using Gravity Forms as a tool for managing a directory listing site, I often wanted to directly edit an entry on the Entries page. Instead, you must click View, then click Edit Entry. Not anymore!

Access Form & Form Entries with PHP Functions

If you want to be able to easily access form data for displaying on a website, use the functions below.

  • get_gf_form($id, $display_title=true, $display_description=true)
    Returns a form using php instead of shortcode.
    Example: echo get_gf_form(1);
  • get_gf_leads($form_id, $sort_field_number=0, $sort_direction='DESC', $search='', $offset=0, $page_size=3000, $star=null, $read=null, $is_numeric_sort = false, $start_date=null, $end_date=null)
    Returns array of leads for a specific form.
    Example: $leads = get_gf_leads(1, 1.4, 'ASC'); foreach($leads as $lead) { ... }
  • get_gf_field_label($form_id, $field_id)
    Gives you the label for a form input (such as First Name). Enter in the form and the field ID to access the label.
    Example: echo get_gf_field_label(1,1.3);
  • get_gf_field_value_long($leadid, $fieldid)
    To retrieve textarea inputs from a lead.  By default, long entries are truncated and stored in a separate database table.
    Example: get_gf_field_value_long(22, '14');

More improvements to come!

I am going to be using this plugin a lot, and customizing it a lot…so I will be making lots of additions to this plugin in the future.

Planned improvements:

Add Fields Panes with the Gravity Forms Addons plugin activated

Add Fields Panes with the Gravity Forms Addons plugin activated

  • Add a configuration page for the Addons in the Forms admin menu that the GF plugin creates
  • Add Ajax form submission
  • Add an Advanced Field module for my favorite email marketing plugins
  • Add a simple widget option
  • Add an option to move the field description above the input, instead of below (look at my website questionnaire as an example of what I’m talking about)

Leave your wish list below

I am open to suggestions on what to add to the Gravity Forms Addons plugin. Leave a wish below!

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • Twitter

Related posts:

  1. Simple Taxonomies Formatting — Improve the Plugin’s Code Output
  2. Constant Contact Forms Generator – Create a Form for any Website or Blogger.com Blog
  3. Mad Mimi Plugin for WordPress
  4. Kick SEO Ass with SEO WordSpinner Plugin for WordPress
  5. Hidden Fields Module for Contact Form 7 (2.x) WordPress Plugin

62 comments… read them below or add one

Kevin Flahaut November 5, 2009 at 3:12 am

Glad you’re liking Gravity Forms and it’s great to see you getting involved and making things happen. Some of the things you’ve mentioned have been discussed and are already on the drawing board for future versions of Gravity Forms. We may add some extra configuration options in as we go along for layout, interface preferences, etc.
As a side note, you mentioned the description placement on your proposal form, you can pretty easily reposition those with a few CSS changes. I copied your form and threw this together quickly.. notice the descriptions below the labels and above the form fields.
http://j.mp/2QFuS3
I realize this isn’t a replacement for a placement preference in the admin, but you can still format the forms on the front end to suit with a little bit of effort.
Here’s the CSS I created (unique to your form of course, but you can get the idea)
http://pastie.org/684319
We’ll look forward to seeing what you come up with in the future. Keep us updated.

Reply

Zack Katz November 10, 2009 at 8:15 pm

Kevin, thanks for the CSS suggestion and the time you spent on that. I look forward to future Gravity Forms versions, and continuing to work with you guys and your product.

Reply

Tim November 5, 2009 at 3:56 pm

Any chance you can create an addon that lets Gravity forms submit events to a Google Calendar?  I know the Google API lays it out pretty well but I’ve not been able to connect the two.
I’d be happy to pay for this development if you can do it relatively soon.
Thanks!
Tim

Reply

Tom November 6, 2009 at 9:06 am

Anyway to add a feature that lets users attach or upload a file with the form? And if possible can we restrict what is uploaded.
Awesome plugin.

Reply

Zack Katz November 11, 2009 at 5:00 pm

There is already that functionality. Under the Advanced Fields pane in the Form Editor, there is a button called File Upload.

Reply

Brandon November 11, 2009 at 12:42 am

Mail Chimp integration would be great as well. I saw it wasn’t one of your “favorites” :)

Reply

Taeke December 18, 2009 at 5:09 pm

Hi Zack, great work you’re doing. I’d love to see an Ajax form submission. Is it something you’re already working on?

Reply

Zack Katz December 18, 2009 at 5:29 pm

I’ve tried a few times now, but haven’t found a good way to do it, because of how the form code is structured. Before Ajax, I will release other things like easy validation setup.

I’m super busy now with client work, so I’ve not been able to package and test what I have, but I have lots of fun new code to release shortly.

Reply

jason jones December 19, 2009 at 5:47 am

I just bought gravity forms for my real estate website. I want to use it as a lead capture tool. Is there any way to make the form either redirect to my framed in idx on my site or pop up like my lightbox pictures fading out the rest of the page until filled out first? Any suggestions would help. Im not a wordpress pro, just a beginning trying it on my own.
Jason

Reply

Joshua Pippin December 26, 2009 at 12:43 am

Thanks, great plugin. I was wondering how hard it was to integrate directory capabilities into gravity forms?

Reply

Zack Katz December 26, 2009 at 4:04 pm

I’ve already done it, and it wasn’t hard. I’m going to be doing a write-up on it once the site has launched. Here’s the gist though: have a Admin field for “published,” and use the built-in “starred” field for whether or not the listing is featured.

It’s a very elegant plugin.

Reply

Peter Bras December 26, 2009 at 9:10 am

Hi

Yes great plugin.
I want to be able to use as a signup page
so any chance that after the user fills the form with their
detail they would be send to paypal for payment.
How I do that?
Thanks
Peter

Reply

Zack Katz December 26, 2009 at 4:06 pm

You can have a custom redirect page set up when you edit the form, choose the “Confirmation” tab, and select a redirect page for PayPal, and you can even pass custom cost variables based on the user’s submissions.

Reply

Paula January 4, 2010 at 10:57 pm

I would like to integrate it with wordpress´s user login data (username and password), so that he user can retrieve and modify information that has been previously entered in the form.

Reply

Rebecca Alderman January 16, 2010 at 3:53 am

I moving from cforms11 to gravity forms.  cforms11 had a sidebar width that all my forms on the site were on but they weren’t flexible in sizing to go post size for some and sidebar size for others.  cforms11 also stopped working, though the forms were in tact, submit buttons wouldn’t work after every wordpress upgrade. GF comes highly recommended and I like what I see already.  Is there a way to change CSS somehow to adjust the width of the input boxes so they will fit in the sidebars for some and yet still remain wide enough for post pages, too?  Please advise!

Reply

Zack Katz January 19, 2010 at 3:37 pm

That is something you will need to do with CSS, with separate styles for your sidebar and your main content area. Gravity Forms uses .gform_wrapper as the containing class for its forms. You can use #sidebar .gform_wrapper input.medium and #content_box .gform_wrapper input.medium to specify different widths for standard text inputs. It will require some knowledge of CSS, but you can try!

Reply

Graham January 21, 2010 at 6:35 am

Is it possible to use this form as an order form where values are entered and it calculates a total? if not would you be interested in creating one for me for a price? Hope to hear from you.

Reply

Zack Katz January 21, 2010 at 4:52 pm

It’s possible to do anything with Gravity Forms. I mean that!

They offer a bunch of hooks to work with form data (used in WordPress, hooks mean actions or filters, and allow developers to easily modify content).

I am not available to work on your project, but know that it is possible!

Reply

Kris April 21, 2010 at 4:51 pm

I have been receiving this error when activating the plugin.
Fatal error: Class ‘RGForms’ not found in /home/content/somesite/html/wp-content/plugins/gravity-forms-addons/gravity-forms-addons.php on line 54

Reply

Pieffers April 25, 2010 at 7:40 pm

me too.
wordpress 2.9.2
 
 

Reply

Justin April 25, 2010 at 11:44 pm

I’m getting the same error:
Fatal error: Class ‘RGForms’ not found in /home7/searcha6/public_html/arlingtondailyhomes/wp-content/plugins/gravity-forms-addons/gravity-forms-addons.php on line 54

Reply

Frank April 26, 2010 at 11:54 pm

I am getting the same error: Fatal error: Class ‘RGForms’ not found in /home/content/f/r/v/frven2010/html/wp-content/plugins/gravity-forms-addons/gravity-forms-addons.php on line 32

Reply

Zack Katz April 26, 2010 at 11:57 pm

@Frank, Justin, Pieffers, Kris – Do you all have the Gravity Forms plugin installed and activated?

Reply

Felipe Scalice April 29, 2010 at 7:57 pm

Fatal error: Cannot instantiate non-existent class: rgforms in /home/wp-content/plugins/gravity-forms-addons/gravity-forms-addons.php on line 54
Plugin installed and activated… wordpress 2.9.2

Reply

Zack Katz April 29, 2010 at 8:44 pm

@Felipe Scalice: The plugin requires the Gravity Forms plugin. If you are seeing this error, you (most likely!) do not have the plugin installed.

Reply

Christian May 8, 2010 at 4:07 pm

I get this Error, when I want to activate the correct installed Gravity Forms plugin.

Christian May 8, 2010 at 4:22 pm

My mistake, now I understood what to do…

will May 12, 2010 at 8:43 am

Works on my hostgator server but not on yahoos.
ERROR
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in/wp-content/plugins/gravityforms/gravityforms.php on line 43

Reply

will May 12, 2010 at 8:46 am

Fatal error: Cannot instantiate non-existent class: rgforms in /wp-content/plugins/gravity-forms-addons/gravity-forms-addons.php on line 54

Reply

Hank May 13, 2010 at 1:42 pm

Plugin could not be activated because it triggered a fatal error.

Fatal error: Class ‘RGForms’ not found in /hermes/bosweb/web226/b2261/ipg.hankfornewbergorg/wp/wp-content/plugins/gravity-forms-addons/gravity-forms-addons.php on line 54

Reply

Mwestfield May 16, 2010 at 11:01 pm

Yep same fatal error when trying to install. I’m on wordpress 2.9.2 running a site on hostmonster, server is running  PHP 5

Reply

David Chouinard June 1, 2010 at 1:35 pm

What’s the checkmark in the screenshot you just posted? Is that something custom?
I’ve been trying to replace entries with images (i.e. instead of an “approved” radio button, a checkmark)…

Reply

Hayden June 3, 2010 at 8:06 am

Hey there. I would like to be able to fetch values from the gravity forms tables to place in a post (as I don’t want to use custom fields for various reasons) so I tried your PHP functions but no luck. Please could you point me (a php noob) in the right direction about what I should place where and perhaps an example.
Your help would be much appreciated.

Reply

Hayden June 3, 2010 at 9:34 am

To update, I managed to get the “get_gf_field_value_long($leadid, $fieldid)" working, but I can’t seem to get any shorter values. What code should I use for that?
By the way, I love the expanded field selectors!!!
Hayden

Reply

Dan Stramer June 22, 2010 at 1:14 pm

Hi Zack,
I have a special request:
I am planning on building a form that will be sent to different WP users depending on which dropdown the user selected in the form (i.e. sales dept., marketing dept., tech dept. etc…)
What I would like to do is have a filter on the entries page in the back end specific users can see only their specific leads.  for example:  only the marketing dept. will see it’s own leads and not see the tech dept. leads.
Can this be done?
Thanks
Dan

Reply

Zack Katz June 24, 2010 at 8:20 pm

@Dan Stramer: Yes, Dan, it can be done. :-) That’s all user permissions stuff, and would likely require some work to do. Read: lots of work. Good luck!

Reply

Dan Stramer June 28, 2010 at 5:23 am

OKת, thanks.
I understand that this kind of thing hasn’t been done yet.
Dan

Reply

Kay June 29, 2010 at 8:45 am

I would like to be able to forward an entry onto another email address directly from the entries listing. I’ve got a form that emails enquiries to different people depending on the department the user chose from a dropdown – but if someone is away or hasn’t responded, the admin staff would like to be able to forward the original message to someone else. Is that kind of thing possible?

Reply

Zack Katz June 29, 2010 at 3:09 pm

@Kay: Thanks for the recommendation. In the next couple of months, I’m going to be spending lots of time making the directory functionality easy to use, as well as implementing some of these ideas.

I like this idea, and it’s possible, but the key is to do it without having to modify Gravity Forms so that it upgrades properly. When I work on the updates, I’ll look into this.

Reply

Kay July 3, 2010 at 7:42 am

Thanks Zack, I’ll keep an eye out!

Reply

Amy July 6, 2010 at 9:14 am

Same fatal error – Class ‘RGFormsModel’ not found in /home2/fishy/www.shittybathrooms.com/docs/wp-content/plugins/gravity-forms-addons/gravity-forms-addons.php on line 54
and it’s hose my entire blog (get the fatal error everywhere now).
How do I fix this?

Reply

Amy July 6, 2010 at 9:31 am

PS… yes I had a working, purchased version of Gravity Forms already installed… (I read the comment above).

Reply

Zack Katz July 20, 2010 at 7:53 pm

Is your Gravity Forms plugin folder named something other than ‘gravityforms’?

Reply

chinola July 6, 2010 at 7:39 pm

this is a great plugin.
do you have a how to or are you planning one for people who don’t know how to code?
I’d love to be able to display entered form data in a table similar to what is shown on the backend but in a post or page.
perhaps creating shortcodes for this?

Reply

Zack Katz July 6, 2010 at 7:40 pm

@chinola: That is exactly what will be coming with the next version of the plugin!

Reply

chinola July 6, 2010 at 8:15 pm

yay! i love you. ive already had my kids but if i hadn’t i’d put you on the list of people i’d promised my first born too. :)

i can bump you up the list depending on when the next version is coming out.

Reply

Hayden July 7, 2010 at 8:49 am

Hey Zack, is there any way to retrieve a single textarea input from a specific lead when not a “long” value?

Reply

Zack Katz July 20, 2010 at 9:21 pm

@Hayden – In version 1.3 of the plugin (just released), there’s a new function: get_gf_field_value($leadid, $fieldid) that will detect if it’s long or normal. That should do it for you!

Reply

nuResponse July 20, 2010 at 7:29 pm

I really like Gravity Forms, and am looking forward to trying out your plugin for the “Directory Management” capabilities.

I see that you’ve created plugins for integrating forms with popular 3rd party services. I’d like to be able to post form data to an API, beyond just the 3 they’ve configured.

I’ve seen another Form plugin, use a custom url builder, where you can use the shortcodes to input the form field data into a custom built url for posting data to a third party API.

I wonder if you’ve done any thought on adding functionality using GF built-in hooks. I know they are using those same hooks to integrate with MailChimp, and the other 2 API’s.

Thanks.

Reply

James Currie July 27, 2010 at 5:01 am

I was looking to do AJAX form submit with Gravity Forms myself. Hacked together something tonight, here’s how you can do it:
http://newportcreativegroup.com/blog/2010/07/27/gravity-forms-submit-via-ajax/

Reply

lenah August 3, 2010 at 2:51 pm

Cannot activate purchased version of Gravity forms. Receiving the following error. Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /blog/wp-content/plugins/gravityforms/gravityforms.php on line 53

Reply

Zack Katz August 3, 2010 at 3:45 pm

@lenah: That error message is coming from Gravity Forms itself, not Gravity Forms Addons. You should contact the plugin developers on their support page.

Reply

Lenah August 5, 2010 at 12:59 am

Thanks I’ll contact them.

Reply

Rachel August 4, 2010 at 6:30 am

I decided to try-out your plug-in today and experienced a bit of a problem: when I activate the Add Ons plugin, I have to disable javascript in my browser to keep the Add Fields section in one place; otherwise, it literally scrolls to the bottom of the page as I scroll down but drops too far down below the custom form, so I can’t select an option from the Post field. When I disable javascript in my browser, the Add Fields box stays put at the top of the page, but I’m unable to edit my forms because javascript has been disabled.

Not sure to how to solve this one…. Any suggestions? My version of Gravity Forms is 1.3.13 in WordPress 3.0.1 .

Thanks,
Rachel

Reply

Rachel August 4, 2010 at 6:51 am

Also forgot to add that the open/close effect of the Add Fields box is disabled when I activate the Add Ons plugin and they no longer respond (open or close). When I deactivate the Add Ons plugin, normal Gravity Forms functions are reestablished.

Thanks again,
Rachel

Reply

Ralf Fuhrmann August 19, 2010 at 8:16 am

Hi !

Great Plugin.

I urgently need on other extension.

I need a function to display a gravity-form with custom-fields as a meta-box at the backend.
So it’s possible to easily edit the entries at the backend.
All front-end features should be implemented.

I realy want to pay for this.

Regards
Ralf

Reply

Veron August 22, 2010 at 3:27 pm

This is great! Is there any way to display just the number (an integer value) of leads/entries for a particular form? Thanks.

Reply

Veron August 22, 2010 at 5:00 pm

Never mind, I figured it out. Use $count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM wp_rg_lead WHERE form_id=1;"));
echo $count;

Reply

Seth Bordan August 25, 2010 at 3:01 am

A key roadblock to using Gravity forms – unless there is some solution!

Replace browser based file upload with a flash based multi-file upload (as primary). ex: uploadify plugin

Connect Gravity Forms saved data to shopping cart.

Ex: I sell digital services that a customer configures using the form. Thereafter I want them to pay for the service and use form data to process the order.

Any ideas? please adviase

Reply

Seth Bordan August 28, 2010 at 4:01 pm

I am surprised – that I cannot find any flash upload tool for gravity forms. It’s critical to my work flow.. ( people upload a multiple files with every form submit). Any tips / ideas / consulting available to add a flash file uploader to gravity forms?

Also, what is the best way to show logged in users, previously filled out form entries?

thanks!!

Reply

scam(new comment) August 31, 2010 at 9:26 pm

This is just an SEO page, the author said he would work on a feature in Nov 2009. He has not done anything.

Reply

Zack Katz August 31, 2010 at 9:54 pm

@scam: I’m actually working on it right now. I’ve been busy.

Reply

Leave a Comment

Previous post:

Next post: