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         

        

    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 FormsEnterpriseBegin 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 onboardingOrder Forms for Small Business
                          No Code FormsConstructionRSVP tool for holidays
                          Free FormsTravel
                          Prefill FormsNon-Profit

                          Intake FormsLegal
                          Mobile App
                          Form DesignerHR
                          Mobile Forms
                          Card FormsFoodOffline Forms
                          Assign FormsPhotography
                          Mobile Forms Features
                          Translate FormsReal EstateKiosk in Mobile Forms
                          Electronic Forms

                          Notification Emails for FormsAlternativesSecurity & Compliance
                          Holiday FormsGoogle Forms alternative GDPR
                          Form to PDFJotform alternativeHIPAA Forms
                          Email Forms
                          Encrypted Forms
                          Embeddable Forms
                          Secure Forms
                          Drag & drop form builder
                          WCAG



                                            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 Marketing Automation

                                                      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 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 page builder

                                                                                                                1. What does this page cover? Learn about the page builder and how you can customize your page and its elements according to your business needs. 2. Availability Pages can be created in all plans of Creator. Only the super admin, admins, and ...
                                                                                                              • Understand 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. ...
                                                                                                              • Understanding forms in a page

                                                                                                                Embedding forms inside the page makes it easier for the user to add data directly to his Zoho Creator application from the page itself. This saves the effort of having to leave the page, navigate to a form from the same or a different app in your ...
                                                                                                              • Understanding reports in a page

                                                                                                                Embedding reports inside the page makes it easier for the user to monitor and analyze their business data and derive meaningful insights straight from the dashboard. It saves the effort of having to leave the page, navigate to a report from the same ...
                                                                                                              • Publish a page with job vacancies list and a form to apply for them

                                                                                                                Requirement Publish a page with components that can be accessed by the public users who don't have a Zoho Creator account. Use case In a Recruitment tracker application, there are 2 forms - Add Job Vacancy and Registration Form. Admins add job ...
                                                                                                                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