Embed an iframe within a page

Embed an iframe within a page

Requirement

Upon successful form submission, display a webpage embedded as an iFrame inside a page.

Use Case

A software company offers multiple products. When users select a product they want to know more about, the page displays the product's website in the same tab instead of redirecting users to different pages for different products.

Steps to follow         

1. Create a form with the following details:
Form
Form Link Name
Field Type
Field Name
Field Link Name
Products
Products
Drop Down
(with choices: CRM, Creator, Books)
Product
Product
Phone
Phone
Phone
 
2. Create a page with the Products form.
 
3. Add an HTML snippet to include the iFrame.
 
4. Save the following code in the HTML snippet:
  1. <iframe name="frameName" width="1200px" height="1000px" frameborder="0" scrolling="yes"> </iframe>
The above are the iFrame details. We will use the iFrame name in a workflow to refer to the iFrame.
 
5. Create a workflow with the following details:
 
We are selecting the Form Event as User input of a field because the website should be displayed when the user selects an option in the drop-down field.

6. Click Add New Action, and add the following snippet:
  1. if (Product=="Creator") 
  2.  { 
  3.   openUrl(" https://www.zoho.com/creator", "iframe", "frameName"); 
  4.  } 
  5. else if (Product == "CRM") 
  6.  { 
  7.   openUrl(" https://www.zoho.com/crm", "iframe", "frameName"); 
  8.  }
  9. else
  10.  { 
  11.    openUrl(" https://www.zoho.com/books", "iframe", "frameName"); 
  12.  }

The snippet uses the openURL task to open the respective website based on the selected product. The second param specifies that an iFrame needs to be open, and the third param refers to the iFrame name as specified earlier in the page.

See how it works         

        

        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG


                                    All-in-one knowledge management and training platform for your employees and customers.

                                              Create. Review. Publish.

                                              Write, edit, collaborate on, and publish documents to different content management platforms.

                                              Get Started Now





                                                                You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                    Manage your brands on social media


                                                                      • Desk Community Learning Series


                                                                      • Digest


                                                                      • Functions


                                                                      • Meetups


                                                                      • Kbase


                                                                      • Resources


                                                                      • Glossary


                                                                      • Desk Marketplace


                                                                      • MVP Corner


                                                                      • Word of the Day


                                                                      • Ask the Experts


                                                                        Zoho Sheet Resources

                                                                         

                                                                            Zoho Forms Resources


                                                                              Secure your business
                                                                              communication with Zoho Mail


                                                                              Mail on the move with
                                                                              Zoho Mail mobile application

                                                                                Stay on top of your schedule
                                                                                at all times


                                                                                Carry your calendar with you
                                                                                Anytime, anywhere




                                                                                      Zoho Sign Resources

                                                                                        Sign, Paperless!

                                                                                        Sign and send business documents on the go!

                                                                                        Get Started Now




                                                                                                Zoho TeamInbox Resources





                                                                                                          Zoho DataPrep Demo

                                                                                                          Get a personalized demo or POC

                                                                                                          REGISTER NOW


                                                                                                            Design. Discuss. Deliver.

                                                                                                            Create visually engaging stories with Zoho Show.

                                                                                                            Get Started Now








                                                                                                                                • Related Articles

                                                                                                                                • Understanding snippets

                                                                                                                                  In a nutshell Snippets are custom blocks within a Page component that can be built using ZML (Zoho Markup Language), HTML, or iframe codes. Deluge can be incorporated into the code blocks to make them interactive and display application data. They ...
                                                                                                                                • Understanding pages

                                                                                                                                  1. What Does This Page Cover? Learn about pages and how they are used to create user-friendly, customized dashboards for your applications. Via these dashboards, you can display dynamic elements and visually represent the data stored in Creator. 2. ...
                                                                                                                                • Functionality-based URLs

                                                                                                                                  Overview In the topic Zoho Creator URL Patterns we learned about the default URLs to access a Zoho Creator application and its forms, reports and pages. In this topic, we will learn about the functionality based URLs to set default values for form ...
                                                                                                                                • Understanding portal pages

                                                                                                                                  This help page is for Creator 6 users with portals created before June 1, 2026. For portals created later, refer to this document to learn about the latest version of portal page customization. If you are on Creator 5, refer to this document. Know ...
                                                                                                                                • Customizing portal pages

                                                                                                                                  This help page is for Creator 6 users with portals created after June 1, 2026. For portals created earlier, refer to this document to learn about the older version of portal page customization. If you are on Creator 5, refer to this document. Know ...
                                                                                                                                  Wherever you are is as good as
                                                                                                                                  your workplace

                                                                                                                                    Resources

                                                                                                                                    Videos

                                                                                                                                    Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                    eBooks

                                                                                                                                    Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                    Webinars

                                                                                                                                    Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                    CRM Tips

                                                                                                                                    Make the most of Zoho CRM with these useful tips.



                                                                                                                                      Zoho Show Resources