Client Scripts
Client Scripts
Client Scripts are brief pieces of code that are run in the browser to enhance or modify ERPNext's default functionality.
Home > Customization > Custom Script
1. How to Create a Custom Script
In order to create a custom script, you must have the System Manager role:
- Click New under Custom Script List.
- A page where you must input the DocType for which you want to develop a Custom Script will be redirected to you will appear.
- Enter your custom script and confirm that it is turned on.
- Save.
2. Notes
The only person with access to server custom scripts is the administrator.
Server custom scripts are written in Python, whereas client custom scripts are written in JavaScript.
After updating a Custom Script for testing, be sure to select Tools > Clear Cache and then Refresh.