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 information lost when field validation is run

  1. Have a form here http://www.solarresources.blueplanetdns.com/quote-request/

    Once the user has filled in their postcode then can then drop a marker on the google map further down the page.

    However, if the user leaves and required fields empty and then submits the form, triggering the field validation, the google map is not reloaded and the marker position is lost etc.

    How do I stop this from happening?

    Thanks

    Posted 11 years ago on Friday August 24, 2012 | Permalink
  2. Because you have AJAX enabled - you will have to redeclare scripts that may be functioning. You can use this to do so:

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

    Or you could try disabling AJAX perhaps?

    Posted 11 years ago on Friday August 24, 2012 | Permalink
  3. I had actually enabled ajax to see if that worked as without ajax I was having issues. With ajax turned off we are closer. Once submit has been hit and the form errors are displayed the Google map now loads., however, the maps zoom level and marker are lost.

    Thanks

    Posted 11 years ago on Tuesday August 28, 2012 | Permalink
  4. Hi chaps. Still have an issue with this, any solutions?

    Thanks

    Posted 11 years ago on Tuesday September 4, 2012 | Permalink