// Add this code to your Webflow page's custom code section document.addEventListener('DOMContentLoaded', function() { const form = document.querySelector('form'); // Update selector if needed let ipAddress = null; // Fetch IP address immediately when page loads fetch('https://api.ipify.org?format=json') .then(response => response.json()) .then(data => { ipAddress = data.ip; // Create hidden field const hiddenField = document.createElement('input'); hiddenField.setAttribute('type', 'hidden'); hiddenField.setAttribute('name', 'ip_address'); hiddenField.setAttribute('value', ipAddress); // Add to form form.appendChild(hiddenField); // Log for debugging console.log('IP Address added to form:', ipAddress); }) .catch(error => console.error('Error fetching IP:', error)); // Add form submission handler form.addEventListener('submit', function(e) { // Debug logging const formData = new FormData(form); console.log('Form submission data:'); for (let pair of formData.entries()) { console.log(pair[0] + ': ' + pair[1]); } }); });

Let's chat

15 min call to review your needs
Get insights from sites similar to yours
Thank you!
A Zeelo transportation expert will be in touch shortly.
Something went wrong while submitting the form.
Please try again. Alternatively use the Chat in the bottom right corner to contact us.

Reliable, efficient and sustainable employee shuttles

We manage shuttle programs for 1000+ organisations, from large corporations to SMEs.