Client Scripts

Client Scripts

Introduction

Client Scripts are small code snippets that are executed in the browser to extend or customize the standard functionality of iVendNext.


Steps to Create a Custom Client Script

Search for Client Script in the Awesome Bar and click on it. This will take you to the Client Script List View screen. 



Click the Add Client Script button. This will redirect you to a page wherein you will be asked to select the DocType for which you wish to create a Custom Script.



Type your Custom Script.


Please do not forget to put a tick in the Enabled checkbox to enable the Custom Script. 


Save.


Save.


Some Key Points To Remember

Remember the following Key Points when creating Client Scripts:


  • Server Custom Scripts are only available for the Administrator.

  • Client Custom Scripts are in JavaScript and Server Custom Scripts are in Python.

  • For testing, make sure to go to Tools > Clear Cache and refresh after updating a Custom Script.


Related Topics

Customizing Field Visibility in Print Format


    • Related Articles

    • Dashboards

      This document outlines the process of creating a dashboard in iVendNext, a retail management system. iVendNext dashboards integrate data from various sources and display it in an easily understandable format using Charts and Number Cards. ...