PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Plugin Drop Downs

  1. How can a plugin, hook into the Drop Down so it can have it's values displayed automatically? Sort of like the Post Fields is, except it would display fields that plugins have added through an "API" of sorts.

    Posted 14 years ago on Tuesday September 22, 2009 | Permalink
  2. Scott,
    This is an iteresting idea. So you would like to dynamically change the items of a drop down field via a filter. That way you would be able to add data from a different database table or what have you. Let me know if I on the right track here. Adding hooks and filters is something we usually can do relativelly quickly.

    Posted 14 years ago on Wednesday September 23, 2009 | Permalink
  3. Well, what I'm envisioning is a way for plugins to integrate with Gravity Forms, and not necessarily have to have Gravity Forms add support for each and every plugin. This way, you do the work once and everyone can jump on the band wagon.

    That won't be the ideal situation for all plugins, since some have a really specific use beyond just selecting something. But it would be very useful.

    So what I'm thinking is this:

    1. Pluggable function that more than one plugin can hook into, and provide an array of items and a name for the drop down.

    2. Gravity Forms lists these drop downs in alphabetical order in a custom section, like "Post Fields".

    3. Provide a section or append to an existing section of the Gravity Help site for 3rd party integration documentation. Currently, you have to be logged in as a premium account to view these, I'm sure there's a good reason for this but it's a bit of a barrier for certain developers - just wanted to provide my concern.

    Posted 14 years ago on Wednesday September 23, 2009 | Permalink
  4. Alex, I think what Scott is looking for is support for adding new field types to the admin. So like "Post Fields" you can add your own custom field types.

    Posted 14 years ago on Wednesday September 23, 2009 | Permalink
  5. For instance, Pods would like to integrate with other plugins as much as possible, so having this would make it easy for Pods and other plugins to have their data represented.

    All that's really needed (for the majority of plugins) is a simple drop down API, where you can hook in your name / value pairs, and give the drop down a label (what it appears as in the right-hand side where you click to add).

    Additionally, hooking into custom fields for plugins to create special fields like an AJAX uploader, or an infinite number of other fields imaginable - would be great to have.

    Posted 14 years ago on Wednesday September 23, 2009 | Permalink
  6. OK, I think I get the picture. This is obviously a little more involving than what I was talking about, but it makes complete sense. Maybe a good start will be the simpler drop down field API you talked about. We can then see how that shaped up and go from there. We are in the middle of the 1.2 release now, but once that is out, I will touch base with you and see if we can start getting this API going.
    Thanks for the support!

    Posted 14 years ago on Wednesday September 23, 2009 | Permalink
  7. Sounds good Alex! Keep up the good work gang!

    Posted 14 years ago on Thursday September 24, 2009 | Permalink
  8. camber
    Member

    I really like the idea of a drop down field API - it would be very useful for creating forms with menus using data from other plugins.

    Posted 14 years ago on Friday October 2, 2009 | Permalink
  9. Even with the existing Gravity Forms API, I still believe some sort of custom action hook to output additional options or what-not into the Form fields would be great.

    Posted 14 years ago on Friday March 12, 2010 | Permalink
  10. +1

    Posted 14 years ago on Saturday March 13, 2010 | Permalink
  11. vinnyslevin
    Member

    +1

    Posted 13 years ago on Friday August 27, 2010 | Permalink
  12. Tony Jansen
    Member

    +1

    Posted 12 years ago on Wednesday May 11, 2011 | Permalink
  13. It's already possible to use the available hooks to create a custom field type in Gravity Forms.

    The gform_add_field_buttons can be used to add your own custom field types to Gravity Forms. Documentation for this hook is here:

    http://www.gravityhelp.com/documentation/page/Gform_add_field_buttons

    We will have to write up a good tutorial on it's usage when we get some time. But it is possible to add a custom field type to the form editor using this hook.

    Posted 12 years ago on Wednesday May 11, 2011 | Permalink

This topic has been resolved and has been closed to new replies.