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.


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


                  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 ...
                                                      • Is it possible to add more than one condition while setting up an email trigger?

                                                        Yes, you can add multiple conditions in an email trigger. Read more on it here.
                                                      • Roles and Permissions

                                                        There are four roles you can create and manage in Zoho Survey: Department Admin - Department admins can access all the surveys in the departments they're part of, and can perform operations such as department, user, and role management. This role ...
                                                      • Introduction to Zoho Survey

                                                        Zoho Survey was launched to cater to the growing needs of the survey market. Whether you're a business person, a professor, an artist, or a college student, Zoho Survey helps you serve a diverse audience. You can now create surveys by using over 25 ...
                                                      • Audit Logs

                                                        Audit logs track all the relevant records of significant activities related to surveys, portals, and departments in chronological order. You can find the date and time of action along with the username and the activity in detail. However, the audit ...

                                                      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