Help with Joomla Contact Form and Google Maps API Issues

0
9
Asked By CuriousCoder123 On

Hey everyone! I've started maintaining a Joomla website with a contact form created using RSForms. The form has two fields, "Moving From" and "Moving To," that utilize the Google Maps API for address autocomplete. A client pointed out that there's an error in some browsers when these fields are used, but it seems the issue is specific to certain environments. I can't check for myself across all browsers, particularly on iOS since I don't own any Apple devices and emulators appear to be working fine. If someone could take a moment to test the form, especially on Safari or any iOS device, I'd really appreciate it! The form is located on the main page at the top section of [this link](https://connect-logistics.co.uk/). If you encounter any errors, please share a screenshot and any error messages from the browser console (F12 > Console tab). Thanks so much for your help!

3 Answers

Answered By DevGuru89 On

Safari and iOS can be pretty picky when it comes to autocomplete features or the way the Google Maps API is set up. Most of the time, issues arise from the API key settings or conflicts in the JavaScript that might not be apparent in other browsers. If someone can test it out on an iPhone and share a console screenshot, it could really help narrow down the fix.

Answered By CodeWizard42 On

From my experience with Joomla and RSForms, make sure you're initializing the Google Maps script with the `async` or `defer` attribute. Safari can be quite strict about when scripts get executed; if your autocomplete script runs before the Google Maps library is loaded, you might run into silent issues. I'd recommend wrapping your initialization in a `window.addEventListener('load', ...)` instead of just using `DOMContentLoaded` to ensure everything loads correctly for iOS users.

Answered By TechieSmith77 On

If you're looking to test iOS without actual hardware, check out [Docker-OSX](https://github.com/sickcodes/Docker-OSX). It’s actively maintained and allows you to run an iOS simulator via Docker. You could also spin up a VM on Proxmox and test there.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.