Trigger Function

Trigger Function

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

How do I...

 

How do I enable trigger functions in my survey?

  1. Select the Hub tab.

    Hub

  2. Select 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

 

How do I 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

 

How do I 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

 

How do I add a connection?

  1. Click Manage Connections and select Add Connection. You can perform the following actions here:

    trigger-functions-manage-connections

    • Pick Your Service

      Select a service to trigger a function

      • Select a service in the Pick Your Service section
      • Type a connection name in the Connection Name field
      • If there are scopes available for the service, you can select them from the Scope list
      • Select the checkbox to use the credentials of the logged in user
      • Click Create and Connect
      • Type the API key into the Please enter the API Key text box
      • Click Save Details
      • Click Accept to allow the users to access the listed information, and your connection status will change to Connected
      • Click Reject if you don't want to allow them to access the listed information
      • Click Back to go back to the previous page
      • Press esc to close this process
    • Custom Service

      Select a custom service

      • Type a name for your service in the Service Name field
      • Select an authentication type in the Authentication Type dropdown
      • Select the parameter type in the Param Type dropdown
      • Type a connection name in the Connection Name field
      • Select the checkbox that follows to use the credentials of the logged in user
      • Click Create and Connect

​​

How do I 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.

 

How do I view all my 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.

     

     

    How do I reconnect?

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

    trigger-function-reconnect

     

     

    How do I 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.

     


    • Related Articles

    • How do I remove a trigger function?

      To remove a function: Click  Remove Function  in the top right corner of the script builder to remove a function you have added. Click  Yes  in the confirmation message that opens.
    • Custom Function: Create_Job

      This custom function can be used to create a new job in any layout. It can also be configured to carry forward necessary field values from the former job to the latter.   Business Scenario Helen is the head of Procurement Management in her ...
    • Action Execution function

      The Execution function is the endpoint to an action execution. It defines the fulfillment of an action. This does the actual execution of the action and gives a final success (or failure) message to the user, as a result of the completion of an ...
    • How do I enable trigger functions in my survey?

      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 ...
    • Trigger Emails

      Trigger Emails Set up automated email notifications for every survey response or only when a respondent answers your survey in a certain way. You can also send the user's score, total score, and the percentage of the total score for each question and ...