Custom Script using Deluge

Custom Script using Deluge

Deluge is a scripting language specifically designed for the Zoho ecosystem. It stands for Data Enriched Language for the Universal Grid Environment and is tailored to help users automate tasks and customize applications across Zoho's suite of products. Read more about Deluge.

Deluge Custom Scripts for Conditions 

How to add the Deluge script for Trigger Email:

To add a custom script for Trigger Email:

  1. Navigate to Builder > Hub > Triggers and click the CREATE Trigger Emails

  1. Click the ADD CONDITON button at the top-right corner.

  1. Click If and select Deluge script Snippet.

  1. Add the custom script required to run the required logic. You can also test run the code to ensure the logic works.

  2. Add your sender email address and other necessary fields to the email settings for triggering the email when the custom script condition returns True.

How to add a Deluge script for the Survey End Page logic 

To add a custom script for Survey End page logic:

  1. Navigate to Builder > Settings > Survey End page and click Add Logic.

  2. Click If and select Deluge script Snippet from the dropdown.

  1. Add the custom script required to run the end page logic. You can also test run the code to ensure the logic works.

  2. In the Default Flow, select the page to redirect to when the custom script logic works.

  1. Click SAVE at the bottom of the page to confirm the changes.

Deluge Custom Scripts for Piping 

The Deluge custom script can be used for piping in the Survey End page and Survey Disqualification page

How to add Deluge script in Survey End Page: 

In the Survey End page, the Deluge script can be used for piping in two places, namely in the custom message and in the redirect to a new page.

    1. Custom Message

To add a custom script for a custom message in the Survey End page:

  1. Go to Builder>Settings>Survey End Page, and click on Add Logic.

  1. Click If, scroll down, and select DelugeScript Snippet.

  1. Add the custom script required for piping and test run the code to ensure it works.

  2. Choose the desired action when the piping works under the then section.

  3. Click SAVE. 

    1.  Re-direct to a New Page

To add a custom script to Re-direct to a New Page in the Survey End Page, follow the steps below:

  1. Go to Builder>Settings>Survey End Page, and scroll down to the Default end page section. Then choose the Redirect to a new page option.

  1. Then click on the Insert Variable icon, scroll down, and select Deluge Script snippet.

  1. Add the custom script required for piping and test run the code to ensure it works. If it works, click SAVE.  

  2. Add the piping parameter to the URL to which the survey should redirect, and click SAVE.

How to add  Deluge script for  survey disqualification page  

In the Survey Disqualification page, the Deluge script can be used for piping in two places, namely in the custom message and in redirect to a new page.

    1. Custom Message

To add a custom script for a Custom Message in the Survey Disqualification Page, follow the steps below:

  1. Navigate to Builder > Settings > Survey Disqualification page, and choose the Custom Message option.

  1. Click Insert Variable, scroll down, and choose Deluge Script Snippet.

  1. Add the custom script required for piping in the window that opens and test run the code to ensure it works.

  2. Click SAVE.

    1. Re-direct to a New Page

To add a custom script to Re-direct to a New Page in the Survey Disqualification Page, follow the steps below:

  1. Navigate to Builder > Settings > Survey Disqualification page, and select the Redirect to a new page option.

  1. Click the Insert Variable icon, scroll down, and select Delugescript Snippet.

  1. In the window that opens, add the custom script required for piping and test run the code to ensure it works. If it works, click SAVE.  

  2. Add the piping parameter to the URL to which the survey should redirect, then click SAVE.

Deluge Custom Scripts for Integrations 

How to add a Deluge script for Webhook: 

Follow the steps below for adding a Deluge script for Webhook integrations:
  1. Navigate to Builder > Hub > Triggers and click the CREATE button for Webhook.

  2. Provide a name for the Webhook and add the POST URL.

  3. In the Request Body, enter a name for the key.
  4. Add the VALUE by scrolling down and selecting Deluge Script from the custom script options

  5. Add the custom script required to run the required logic. You can also test run the code to ensure the logic works.
  6. Add the query parameter, also using a custom script if required.
  7. Add the Header details and click SAVE.

How to add a Deluge script for Power BI: 

Follow the steps below for adding a Deluge script for Power BI integrations:
  1. Navigate to Builder > Hub > Integrations and click the CREATE button for Power BI.

  2. Provide a name for the Power BI and add the POST URL

  3. In the Request Body, enter a name for the key. Scroll down and select Javascript from the custom script options.
  4. Add the custom script required to run the required logic. You can also test run the code to ensure the logic works.
  5. Click SAVE.
 

How to add a Deluge script for Zoho CRM: 

Follow the steps below for adding a Deluge script for Zoho CRM
  1. Navigate to Builder > Hub > Integrations and click the INTEGRATE button on Zoho CRM.

  2. Select the environment you wish to pass the responses to, then click NEXT.

  3. Select the CRM modules from which values should be passed to Zoho survey, using the dropdown button.

  4. Select the type of action that needs to be performed. Under the value to be passed on, scroll down and select Deluge Script from the custom script options.

  5. Add the custom script required to run the required logic. You can also test run the code to ensure the logic works.
  6. Click SAVE.  
 

How to add a Deluge script for Zoho Recruit 

  1. Navigate to Builder > Hub > Integrations and click the INTEGRATE button on Zoho Recruit.

  2. Select the MODULES you wish to pass the responses, then click NEXT.

  3. Select the type of action that needs to be performed. Under the value to be passed on, scroll down and select Deluge Script from the custom script options.

  4. Add the custom script required to run the required logic. You can also test run the code to ensure the logic works.
  5. Click SAVE.
 

How to add a Deluge script  for Google Sheets 

Follow the steps below for adding a Deluge script for Google Sheets:
  1. Navigate to Builder > Hub > Integrations and click the INTEGRATE button on Google Sheets.

  2. Select the spreadsheet and questions that need to be integrated and click NEXT.

  3. In the Google Sheet integration page, click the + button.

  4. Under Select question, scroll down and select Deluge script from the custom script options.

  5. Add the custom script required to run the required logic. You can also test run the code to ensure the logic works.

  6. Click SAVE
 

How to add a Deluge script for Zoho Sheets 

Follow the steps below for adding a Deluge script for Zoho Sheets:
  1. Navigate to Builder > Hub > Integrations and click the INTEGRATE button on Zoho Sheets.

  2. Select the spreadsheet and questions that need to be integrated and click NEXT.

  3. In the Zoho Sheet integration page, click the + button. Depending on the number of questions, you may need to scroll down.

  4. Under Select question, scroll down and select Deluge script from the custom script options.

  5. Add the custom script required to run the required logic. You can also test run the code to ensure the logic works.

  6. Click SAVE

Points To Note 

 The following keywords are restricted to be saved in Deluge :

 

sendmail

posttochat

zoho

integration

 

Sample Reference 

A sample reference Deluge script snippet code demonstrating a simple condition using an if statement.
The provided Deluge code snippet demonstrates a simple condition using an if statement.
This code snippet checks a specific response value and returns true if it matches the string 'Single'.
 

if(application.get('survey').get('question').get('C').get('response') == 'Single' )

{

return true;

}
NotesNote:
You can read here more about built-in Deluge functions. You can only use text functions, Date- Time functions, Number functions and some Common functions.




        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          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 FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin 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 onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




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

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                    • Related Articles

                                                                                                                                    • Custom Script Overview

                                                                                                                                      If you want your survey to make decisions based on a complex logic, you can enable this by using Custom Scripts. Simply put, Custom Scripts are short transcripts of code that'll run in the backend of the survey based on the input received from the ...
                                                                                                                                    • Create Variables to Fetch Data using Deluge Script

                                                                                                                                      Overview Use a Deluge script to bring data from other systems into your survey as variables. The script runs when the survey loads and returns values which are saved as variables. You can use these variables to prepopulate fields, pipe values into ...
                                                                                                                                    • Custom Script using JavaScript

                                                                                                                                      JavaScript is a powerful and widely-adopted programming language that excels in client-side scripting within web browsers. It allows developers to create dynamic and interactive web applications. In Zoho Survey, you can leverage JavaScript for ...
                                                                                                                                    • Custom V​ariables

                                                                                                                                      Zoho Survey offers the following advanced features that take your surveying experience to a new level. Custom Variables Scoring Invite Reviewer Share Survey Send Copy Transfer Survey Export as PDF Print Survey Using custom variables allows you to ...
                                                                                                                                    • Create Custom Views for Responses

                                                                                                                                      Create custom views to filter and organize responses based on specific criteria, such as completion status or answer values. Save views to quickly revisit the same filtered data later. How to create custom views for responses Go to the Responses tab. ...
                                                                                                                                      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