How to pass parameter through Wix into a Zoho Forms formular

How to pass parameter through Wix into a Zoho Forms formular

I am currently trying without success to add a Zoho form to Wix where I can pass the URL parameters into the form.
Has anyone managed to do this successfully?

I've been working on this for many hours and just can't find a solution that works.

I am currently here. But I have no success with the parameters:
**********************************
HTML-Code:
<iframe id="myHtmlElement" src="https://forms.zohopublic.eu/..." 
  style="height:500px;width:99%;border:none;"></iframe>
**********************************

And Velo Dev:
**********************************
import wixLocation from 'wix-location'// Import der Wix Location API

$w.onReady(function () {
  // Funktion, um die URL des iFrames zu aktualisieren
  function updateIframeUrl() {
    const queryParams = wixLocation.query// Erfassen der aktuellen URL-Parameter

    // Konvertiert die Parameter in einen Query-String
    let paramsString = Object.keys(queryParams).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(queryParams[key])}`).join('&');

    // Setzt die URL des iFrames mit den erfassten Parametern
    if (paramsString) {
      const iframeUrl = 'https://forms.zohopublic.eu/...?' + paramsString;
      $w("#myHtmlElement").src = iframeUrl;
    }
  }

  // Aktualisiert die iFrame-URL beim Laden der Seite
  updateIframeUrl();

  // Optional: Code, um auf Änderungen der URL-Parameter zu reagieren
  // Kann nützlich sein, wenn Parameter dynamisch geändert werden, während die Seite geöffnet ist.
  wixLocation.onChange(() => {
    updateIframeUrl();
  });
});
**********************************
Ole

      Zoho Developer Community









                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation
                                            • Sticky Posts

                                            • Introducing Card Forms!

                                              Hello form builders, Zoho Forms is now introducing an elegant, free-flowing fluid design of Card forms that will give your forms a visually appealing look, while avoiding any visual clutter for users who are attempting to answer multiple questions at
                                            • Important update in Zoho Forms: Enhancements for improved email deliverability

                                              Hello, form builders! We would like to inform you about some changes we're making in Zoho Forms to ensure the deliverability of your outbound emails. Changes to Gmail policies Gmail has updated its DMARC policy which quarantines emails sent with gmail.com
                                            • Form language translation in Zoho Forms

                                              Hello everyone, Any business needs to satisfy its customers to gain favorable results, and it's not always easy. Various factors, like culture, education, and economics, can influence how they react to your products and services. When you're looking to
                                            • Enhancing user experience with Audio/Video Upload in Zoho Forms

                                              Hello form builders! Today, interactive forms are an integral part of websites and applications. While text-based inputs serve a variety of purposes, audio and video uploads can open up a world of possibilities for businesses. Imagine you are a talent
                                            • Introducing Auto-Trash Submissions!

                                              Hello form builders! Are you tired of sifting through and deleting form submission data? Try out the latest addition to Zoho Forms: Auto-Trash Submissions. This new feature is designed to help you control and manage data collected through your forms.


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl Resources


                                                                  Zoho Creator Resources



                                                                    Zoho WorkDrive Resources



                                                                      Zoho Campaigns Resources


                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner





                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now