Handling Modal Boxes | Online Help | Zoho BugTracker

Handling Modal Boxes

Opening a modal box with the invoke method

Creates a new iframe instance of the extension in the specified location.

zohobugtracker.invoke("modal.create",modal_location);

Argument Name Data Type Description
action string "modal.create" - creates or opens a modal box.
modal_location Object The relative path of the HTML file that has to be invoked. Example: {"url":"/app/choosefiles.html"};

A widget ID and a string constant are generated as the output.

Closing a modal box with the invoke method

Closes an iframe instance of the extension that was already opened in the specified location.

zohobugtracker.invoke("modal.close",modalInfo.widgetID);

Argument Name Data Type Description
action string "modal.close" - closes the opened modal box.
widgetID Object The widgetID generated as the output for "modal.create" should be passed here.

Resizing a modal box with the invoke method

Resizes the iframe instance of the extension to the specified size.

zohobugtracker.invoke("modal.resize", resize_modal);

Argument Name Data Type Description
action string "modal.resize" - increases the default size of a modal box.
resize_modal Object The relative path of the HTML file that has to be invoked. Example:{"width" : 600,"height" : 400};
Min & Max allowed height 380px & 450 px.
Min & Max allowed width 550px & 850 px.

A widget ID and a string constant are generated as the output.

Displaying notifications with the invoke method

Displays notifications related to the extension at the specified location. It is currently supported only for Bug tabs.

zohobugtracker.invoke("showNotification", notification_details);

Argument Name Data Type Description
action string "showNotification"
notification_details Object

Example: {notificationData:"5"} 

The value mapped against this key will be displayed as a notification.

 

Closing an attachement picker with the invoke method

Closes an iframe instance of the extension that was opened in the specified location to attach a file.

zohobugtracker.invoke("attachment_picker.close");

instance

Creates an instance for a specific widget.

zohobugtracker.instance(widget_ID);

Argument Name Data Type Description
ID string Widget ID generated from the invoke method.

emit

Throws data from the current location.

zohobugtracker.emit("KeyforMyListener", data);

on

Listens or receives data from the emit method.

zohobugtracker.on("KeyforMyListener", data);

Assume the following sample code block is called from a parent file '/apps/index.html' and '/apps/file.html' is the child file.
var modal_location={"url":"/apps/file.html"};
zohobugtracker.invoke("modal.create",modal_location).then(function(modalInfo){
var modalInstance=zohobugtracker.instance(modalInfo.widgetID);
modalInstance.on("modal.opened", function(){ /* This code listens for the status 'modal.opened' from the child HTML - file.html */
var data = {org: "1234"};
modalInstance.emit("submit", data);
});/* This code throws a status 'submit' along with an object to the child HTML - file.html*/
modalInstance.on("submitted",function(data){ 
/*This code listens for a status with the key 'submitted' from the child HTML*/
zohobugtracker.invoke("modal.close", modalInfo.widgetID);
});

Assume the following sample code block is called from the child file '/apps/file.html' and '/apps/index.html' is the parent file.

var filedetails = {"filename": "abc"};
zohobugtracker.on("submit", function (data) {});
/*This code listens for an event with the key "submit" from the parent file index.html  */
zohobugtracker.emit("submitted", filedetails); 
/* This code throws a status 'submitted' along with an object to the parent file index.html */

Alert

Set and display success or failure alerts.

zohobugtracker.invoke("alert", {
                            type: "success",  //or "failure"
                            data: "Permission granted successfully"
                        });


    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 Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          CRM Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal
                          Mobile App
                          Form Designer HR
                          Mobile Forms
                          Card Forms Food Offline Forms
                          Assign Forms Photography
                          Mobile Forms Features
                          Translate Forms Real Estate Kiosk in Mobile Forms
                          Electronic Forms

                          Notification Emails for Forms Alternatives Security & Compliance
                          Holiday Forms Google Forms alternative  GDPR
                          Form to PDF Jotform alternative HIPAA Forms
                          Email Forms
                          Encrypted Forms
                          Embeddable Forms
                          Secure Forms
                          Drag and 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

                                                  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









                                                                                                              • Related Articles

                                                                                                              • GoToMeeting for Zoho BugTracker

                                                                                                                Based on the severity of the issues, the project teams will be involved in handling issues with the appropriate level of care. Activities such as prioritizing the issues, determining a deadline, and measuring the severity level, need a well-planned ...
                                                                                                                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