Learn How to Trigger Functions With Zoho Survey - Online Help Guide

Trigger Functions

Zoho Survey is integrated with Deluge, our online scripting language, which can help you add functions to automatically perform actions when responses are submitted. Use Deluge and APIs to create connections and push data to third-party services or other Zoho products, even if they aren't yet integrated with Zoho Survey. For example, you can set a trigger to create a support ticket in Zoho Desk when a bad review comes in, or send a thank you email every time a response is submitted.

The trigger function screen has the following components:
Syntax: The scripts available on the left pane
Editor: The Deluge editor where you add scripts to trigger actions
Variables: The survey responses for each question to be used in the script, on the right pane
Templates: The pre-written, ready-to-use code
Logs: The log list for debugging purposes
Connections: The connections that you would need to perform integrations within Zoho products

Trigger functions in Zoho Survey

To enable trigger functions in your survey:

  1. Click the Hub tab.

  2. Click the Triggers section.
    triggers
  3. Click Create in the Trigger Function section.
    trigger-function-create
  4. Drag and drop syntax from the left pane into the script editor.
    trigger-function-syntax
  5. Copy variables and templates from the right pane and paste them into the script based on your requirements. Read more about built-in Deluge functions here.
    Templates in trigger function
  6. Click  Keyboard shortcuts in Survey trigger function  to access the keyboard shortcuts.
    Detailed keyboard shortcuts in trigger function
  7. Click Save.
    trigger-function-save

To remove a function:

  1. Click Remove Function in the top right corner of the script builder to remove a function you have added. 
    trigger-function-remove
  2. Click Yes in the confirmation message that opens. 
    trigger-function-remove-confirm

To check the logs:

  1. Click Show Logs in the bottom left corner of the Deluge editor. Use the logs for debugging purposes. 
    trigger-function-show-logs
  2. Click Refresh Logs to update the logs. 
    trigger-function-refresh-logs
  3. Click Hide Logs to close the log window. 
    trigger-function-hide-logs

To add a connection:

  1. Click Manage Connections and select Add Connection. You can perform the following actions here: 
    trigger-functions-manage-connections
  2. Select a service to trigger a function
    1. Select a service in the Pick Your Service section. 
    2. Type a connection name in the Connection Name field. 
    3. If there are scopes available for the service, you can select them from the Scope list. 
    4. Select the checkbox to use the credentials of the logged in user. 
    5. Click Create and Connect
    6. Type the API key into the Please enter the API Key text box. 
    7. Click Save Details
    8. Click Accept to allow the users to access the listed information, and your connection status will change to Connected. 
    9. Click Reject if you don't want to allow them to access the listed information. 
    10. Click Back to go back to the previous page. 
    11. Press esc to close this process. 

To add a service that isn't available as a connection:

  1. Click Custom Service
  2. Type a name for your service in the Service Name field. 
  3. Select an authentication type in the Authentication Type dropdown. 
  4. Select the parameter type in the Param Type dropdown. 
  5. Type a connection name in the Connection Name field. 
  6. Select the checkbox that follows to use the credentials of the logged-in user. 
  7. Click Create and Connect.
    Select a custom service

To edit a connection: 

  1. Hover over the connection and click the edit icon on the All Connections page. 
    trigger-function-edit-connection
  2. Make the necessary changes and click Update.

To view all your connections: 

  1. Click Manage Connections. You will be taken to the All Connections page. 
    trigger-functions-manage-connections 
  2. Click Own Connection to view all the connections you have created. 

To reconnect:

Hover the mouse over a connection and click Connect or click the plug icon trigger-function-reconnect on the All Connections page.


To delete an existing connection:

  1. Hover the mouse over a connection and click Delete on the All Connections page. 
    trigger-function-delete-connection
  2. In the confirmation message that follows, click Yes, Delete
    trigger-function-delete-connection-confirm
    Read more about Deluge here.

    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

                                                                                                              • Trigger Emails

                                                                                                                Triggers are actions or workflows that you can create from within Zoho Survey. Zoho Survey currently supports three triggers, Trigger Emails, Trigger Functions, and Webhook. You can set up automated email notifications for every survey response or ...
                                                                                                              • Create an Email Invitation Trigger on Pipedream

                                                                                                                Pipedream is a powerful tool that connects different applications and automates their workflows. The Zoho Survey and Pipedream integration can help you send timely survey emails or set automated workflows based on the actions performed in your ...
                                                                                                              • Create an Email Invitation Trigger on Zapier

                                                                                                                Send email invitations to your respondents based on actions from other applications by connecting your Zoho Survey account with automation services like Zapier. Through this, respondents can receive feedback emails for purchasing a product on an ...
                                                                                                              • Trigger Invitations using Zoho Survey API

                                                                                                                Overview Enabling the Zoho Survey API allows you to automatically distribute surveys via email to your contacts. Any application can use trigger-based email distribution to send email invitations when an event occurs. Use Cases : Here are some ...
                                                                                                              • Create an Email Invitation Trigger on Zoho Flow

                                                                                                                Send email invitations to your respondents based on actions from other applications by connecting your Zoho Survey account with automation services like Zoho Flow. Through this, respondents can receive feedback emails for purchasing a product on an ...
                                                                                                                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