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.

Google Maps

  1. chucks
    Member

    I would like to use a Google Map in a form. Does Gravity Forms have this capability or would I have to create a field type myself, and if so do you have an API and/or documentation on creating a field type? Or is there a better way?

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  2. There is a ton of documentation and a hook called "gform_field_input" which can be used "to create custom field types." This documentation page shows its use with Google Maps specifically

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

    There are a couple other forum posts where people have implemented Google Maps as well. Only members who have purchased the plugin have access to those forums.

    So, depending on what you want to do with the map exactly, I would have to say that yes, you can integrate Google Maps and Gravity Forms.

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  3. Gravity Forms does not currently have a Google Maps related field.

    It is possible to create a custom field type, however it is a more advanced customization. There is a hook used to do this but we don't currently have a tutorial on how to create a custom field from start to finish.

    This is the documentation for the hook you would use:

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

    You won't be able to access it unless you own a license key. However, that is the hook that would be used... along with others i'm sure. It's a fairly advanced customization to implement your own custom field so you'd have to get familiar with how Gravity Forms works first before doing so.

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  4. chucks
    Member

    Thanks for your responses. I gave it a little more thought and realized that for what I want it to do (geocode, etc.) it will probably require writing an add-on. Do you have add-on documentation? I could reverse engineer an add-on but it would certainly make things easier if you had docs. Again, Thanks

    Posted 12 years ago on Wednesday August 24, 2011 | Permalink
  5. All of our Add-Ons can be reverse engineered, they use a consistent format and interface. Although i'm not sure any of them currently add a custom field to the form editor.

    Posted 12 years ago on Wednesday August 24, 2011 | Permalink