Articles on: OneHash CRM | Customize OneHash

Custom Scripts



Custom Scripts


If you wish to change any OneHash form formats, you can do so by using Custom Scripts. For example, if you wish to add a submit button after saving, to a Lead form, you can do so by creating your own script. Custom Scripts are small code snippets that are executed in the browser to extend or customize the standard functionality of OneHash.


Home > Customization > Form Customization > Custom Script



  • How to Create a Custom Script

  • Create a Custom Script (you must have System Manager role for this):


    1. Go to Custom Script List and click on New.
    2. You will be redirected to a page wherein you will be asked to enter the DocType for which you wish to create a Custom Script.
    3. Type your Custom Script.
    4. Save.


  • Notes

    1. Server Custom Scripts are only available for the Administrator.
    2. Client Custom Scripts are in JavaScript and Server Custom Scripts are in Python.
    3. For testing, make sure to go to Tools > Clear Cache and refresh after updating a Custom Script.



    Custom Script Examples


    Here are some custom script examples:


    Updated on: 31/03/2023

    Was this article helpful?

    Share your feedback

    Cancel

    Thank you!