[solved] How to use Global Variables in custom script

Hi Everyone,

I appreciate if anyone can let me know what is the way to use Global Variables in Custom Script.

Ruchin Sharma

I got the answer by myself to use the Global Variable. Declare the variable on the top outside the block.

for example:

var a=0;
frappe.ui.form.on("Salary Structure Deduction","d_type", function(frm, cdt, cdn) {
1 Like