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.


      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

                              WCAG



                                        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

                                                                                                                          • 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 ...
                                                                                                                          • Scripts

                                                                                                                            Early Access Scripts module is not enabled for all users. If you’d like to try it out, please email our support team for early access. Scripts module helps to simplify message execution for larger scripts. While simple commands can be executed ...
                                                                                                                          • Manage Widgets

                                                                                                                            Widgets allow you to build custom applications for your businesses right from Qntrl. Qntrl provides a native editor with pre-defined framework and pre-configured plugin-manifest file to build Widgets. You can code, execute, and publish the widgets ...
                                                                                                                          • Business case 1: Use client scripts to perform mathematical calculations and validations on data

                                                                                                                            While designing forms to replicate finance related documents like purchase order, invoice, or reimbursement bills, our workflows might require the calculation of total cost or sum of expenses incurred. To automate such mathematical calculations and ...
                                                                                                                          • Business case 2: Use client scripts to auto-populate fields based on user input

                                                                                                                            While designing forms, we would sometimes require to display different sets of fields for different user responses. Such automatic field population can be handled using client scripts.   Business Scenario Helen creates a sign-up form for her product ...
                                                                                                                            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