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.

Custom php functionality within Gravity Forms

  1. ryanseomc
    Member

    Hello,

    In my theme im working called Geoplaces by Templatic I have gotten my registration form to almost completely work with the theme except one thing. The theme already has a signup form and there's custom php functionality that utilizes the address that the user puts in and based on that address it sets geo longitude and latitude markers for that address into a geo_longitude and geo_latitude custom field so they'll show up properly within the google maps view within the page. Is there a way to accomplish getting that custom functionality into a section within Gravity forms?

    Here's url for the original theme signup form which contains the area. You'll see an address section , a google map view and a 'set address' button ... when you set address it sets the longitude/latitude markers based on the address in the text field.

    http://www.therapistnewyork.com/add-your-listing/

    Here's url for Gravity forms signup form:

    This is where id like to implement that functionality, it seems like a possible solution would be to hook it within gravity forms somehow just not sure how. Thanks
    http://www.therapistnewyork.com/purchase-listing/

    Posted 12 years ago on Monday July 11, 2011 | Permalink
  2. This is possible, but only as a customization.

    You would have to write a customization that reads the value of the address, looks up the geo location information from wherever this data is going to come from and then populate the longitude and latitude fields which could be hidden post custom fields on your form.

    Here is a tutorial on how to dynamically populate fields:

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

    We can't write the code for you, we can only provide you with information on what you would have to do and resources on the high level overview of what would be necessary.

    Posted 12 years ago on Monday July 11, 2011 | Permalink
  3. ryanseomc
    Member

    This is perfect Carl,

    I'll take a look at the functions for getting lat/long markers from address field and trying the method provided. Thanks!

    Posted 12 years ago on Monday July 11, 2011 | Permalink