import { fetch } from 'wix-fetch'; $w.onReady(function () { // Replace with your form ID $w("#travelPlannerForm").onWixFormSubmitted((event) => { const formData = event.formData; // Send to your Pipedream webhook fetch('https://eo1dss0ynom1mj.m.pipedream.net', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ destination: formData.destination, startDate: formData.startDate, endDate: formData.endDate, travelers: formData.travelers, budget: formData.budget, travelStyle: formData.travelStyle, interests: formData.interests, accommodation: formData.accommodation, email: formData.email, name: formData.name, timestamp: new Date().toISOString() }) }) .then(response => response.json()) .then(data => { console.log('Travel plan generated:', data); // You can redirect to a results page or show success message $w("#successMessage").show(); }) .catch(error => { console.error('Error:', error); $w("#errorMessage").show(); }); }); });
top of page

Desi Travel Geek

Van travelling

Travel Blogs Catagories

Cuisines

Dive into our Explore Cuisines category and take a flavorful journey through the world's rich culinary traditions! Here, you’ll uncover tantalizing dishes, explore unique ingredients, and learn about the cooking techniques that make each cuisine distinctive. Whether you’re a dedicated food lover in search of new recipes or someone eager to discover global flavors, our posts are designed to inspire your culinary creativity and enhance your dining experiences!

bottom of page