Forum

Thread tagged as: Problem, Forms

Maps field type returns static map only if form fails

I'm having an issue when using the type=map field on a page with a Perch form.

If the form on the same page as the map fails validation, when the page reloads only the static map appears, not the interactive map.

(A common use case would be a "Contact Us" page with a map and contact form.)

This only happens in browsers that allow a form with incomplete required fields to be submitted before reporting the error state -- for example, the most recent builds of Safari on iOS and MacOS. (Chrome and Firefox, on the other hand, pop up a little "This field is required" tooltip and don't reload the page or load the perch:error states so this doesn't happen.)

It's not a massive issue, and is a bit of an edge case, but I'm wondering if there's any resolution. No errors reported in the console. Perch and Forms are up to date.

Perch: 2.8.32, PHP: 5.4.45, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', );
Richard Terrick

Richard Terrick 3 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It's not something I've heard of before, no