Manage Server Scripts | Online Help | Qntrl

Manage Server scripts

Server scripts help you code company-specific business logic to manage database, perform time-consuming processes quickly, and automate activities in your business workflows. These scripts running on a server help you retrieve, display, and auto-populate data in Qntrl based on the coded conditions. Server scripts also allow you to create local and global variables using Server Variables. You can track all actions in server scripts using Server Logs.

Benefits of using Server script

  1. Populate read recipients for a card
  2. Fetch data from third-party websites
  3. Validate new data entered in cards
  4. Set conditions for users to delete cards
  5. Transfer data to third-party applications
  6. Delete associated cards from third-party applications
  7. Easily retrieve data stored in Qntrl 
  8. Automate tasks based on a specific condition. For example, once candidates are hired, you could map them to the on-boarding process, update the payroll software, assign teams, provide IT assets, confirmation process, etc automatically
  9. Stay updated on business activities from APIs or other third-party applications
  10. Helps you auto-populate data. For example, perform calculations and set dynamic SLA using server script 
  11. Assign cards to users based on scheduling patterns

When are server scripts executed? 

Server Scripts are executed based on one of the following triggers:

  1. On loading a card (onLoad)
  2. Before creating a card (Before Create)
  3. After creating a card (After Create)
  4. Before updating a card (Before Update)
  5. After updating a card (After Update)
  6. Before deleting a card (Before Delete)
  7. After deleting a card (After Delete)
​​​​Only one execution trigger can be associated with a server script.

Add a server script

  1. Navigate to and select Server Scripts under  Scripts  in the menu.
  2. Click the New Script  button.
  3. Enter the execution details:
    1. Script Name : Enter a name for the server script.
    2. Form : Select the form to execute the script.
    3. Execution Location : Select a location to execute the script. 
    4. Execution Trigger : Select when the script can be executed.
  4. Code the script as per the business requirement.
  5. Click the Publish button and confirm your action.

A new server script will be added to Qntrl. You can also click Save as Draft and publish the script later.
An execution trigger can only be used twice for a particular form.

Edit or modify a server script

  1. Navigate to  and select Server Scripts  under  Scripts  in the menu.
  2. Click on the script you want to edit.
  3. Modify the required details.
  4. Click the Publish button and confirm your action.
The server script will be updated.
Make sure to publish your scripts in order to execute the updated scripts.

Set execution order for server scripts 

You can decide the order in which server scripts get executed. To set the execution order: 
  1. Navigate to and select  Server Scripts  under  Scripts  in the menu.
  2. Click the Set Execution Order button.
  3. Select a Form and Execution Trigger.
  4. Based on the details given, a list of scripts will be displayed.
  5. Provide a suitable execution order in which you would like the scripts to be executed.
  6. Click Save.

The scripts will now be executed based on the order set.

Filter scripts

You can filter server scripts to categorize them based on forms. To filter server scripts for a specific form: 
  1. Navigate to and select  Server Scripts  under  Scripts  in the menu. 
  2. Click on in the All Forms column to select a form. 

Scripts of that particular form will be displayed.

Enable or disable scripts

All published server scripts are enabled by default. Disabling a server script will stop its execution temporarily.


1. Navigate to and select  Server Scripts  under  Scripts  in the menu.
2. Toggle the button next to a server script to activate or deactivate the script.

Delete a server script

 To delete a server script:
  1. Navigate to    and select  Server Scripts  under  Scripts  in the menu.
  2. Hover over the script you want to delete.
  3. Click the   Delete  button and confirm your action.

    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

            Get started with Zoho Sign

            in a few quick steps!

            Download Help Guide

                      Still can't find what you're looking for?

                      Write to us:



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

                                                    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

                                                                                      • Manage Client Scripts

                                                                                        Client Scripts are used to incorporate additional validations to business data while they are recorded in Qntrl. In client scripts, you can code using JavaScript and run the code on the end-user’s browser while they are creating a new card or ...
                                                                                      • Business case 4: Set conditions for users to delete cards using Server Scripts (Before Delete)

                                                                                        Organizations provide permissions and privileges to various sections of staff according to their roles and profiles. In order to make sure that the data within Qntrl can only be deleted by the right personnel, organizations can implement complex ...
                                                                                      • Server variables

                                                                                        Server variables are placeholders that can store values. These variables can be used in the server scripts based on their scope. Create a server variable Navigate to and select  Server Variables  under  Scripts  in the menu. Click the New Variable ...
                                                                                      • Business case 1: Populate read recipients list for a card using Server Scripts (On Load)

                                                                                        Managers find it useful to know which employees have viewed a new card or comment, like a read receipts list. It helps managers know if an employee has viewed his assigned task and evaluate how informed employees are about new updates in the ...
                                                                                      • Business case 3: Validate new data entered in cards using Server Scripts (Before Update)

                                                                                        Performing operations and coordinating with teams can be quite a herculean task. If the information given in the card details is changed to corrupt information later, it may create chaos and slow down task completion. This is why if a user is to make ...
                                                                                      Wherever you are is as good as
                                                                                      your workplace



                                                                                        Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.


                                                                                        Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.


                                                                                        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