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         

        

    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








                                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

                                      Zoho Desk Resources

                                      • Desk Community Learning Series


                                      • Digest


                                      • Functions


                                      • Meetups


                                      • Kbase


                                      • Resources


                                      • Glossary


                                      • Desk Marketplace


                                      • MVP Corner


                                      • Word of the Day


                                        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







                                                                                            You are currently viewing the help articles of Sprints 1.0. If you are a user of 2.0, please refer here.

                                                                                            You are currently viewing the help articles of Sprints 2.0. If you are a user of 1.0, please refer here.



                                                                                                  • Related Articles

                                                                                                  • 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. ...
                                                                                                  • 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 ...
                                                                                                  • Add and configure an embed element

                                                                                                    The embed element enables you to add external assets to the pages in your Creator applications via their embed code or URLs: Media like files, images, audio, and videos Widgets, forms, blogs, and websites You can customize the height and width of the ...
                                                                                                  • Understand HTML snippets

                                                                                                    Snippets are stand-alone, re-usable code pieces that can add additional functionality. An HTML snippet is a small portion of source code in HTML. They can be used to build different elements (like a list view, different styled buttons, text display, ...
                                                                                                  • Get embed code of the published page

                                                                                                    This help page is for users in Creator 6. If you are in the older version (Creator 5), click here. Know your Creator version. To get the embed code of the page 1. Navigate to the Operations page under the MANAGE section of the admin dashboard. 2. ...
                                                                                                    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