• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Help with Google Maps API integration in RSForm –

Help with Google Maps API integration in RSForm – 2 days 8 hours ago #43959

Hi everyone,

I’m looking to build a form using RSForm Pro that will allow users to estimate the cost of a move between two locations.

Here’s what I want the form to do:
• The user enters a “From” and “To” location.
• Ideally, both inputs should have autocomplete suggestions powered by Google Maps (Places API).
• Once both addresses are selected, the form should calculate the driving distance using Google Maps Distance Matrix API.
• Based on this distance, RSForm should automatically compute a transport cost using a custom formula (e.g., X currency units per km).
• After submitting the form, the user should receive an email with:
• form submission confirmation,
• calculated distance,
• and estimated transport cost.

My questions:
1. Is this kind of setup possible within RSForm Pro without third-party components?
2. What’s the best way to integrate Google Maps APIs (Places & Distance Matrix) into RSForm? Where exactly should the JavaScript code be added?
3. Can JavaScript values (e.g. calculated distance) be passed into hidden fields in RSForm to be used in the email or stored in submissions?
4. How can I configure the email template to include dynamic values (like the calculated cost)?
5. Are there any examples, tutorials, or documentation pages where I could see similar implementations?

Any guidance, examples, or code snippets would be greatly appreciated. Thanks in advance for your help!

Best regards,
Kasjan
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!