Hi Everyone,
I appreciate if anyone can let me know what is the way to use Global Variables in Custom Script.
Regards
Ruchin Sharma
Hi Everyone,
I appreciate if anyone can let me know what is the way to use Global Variables in Custom Script.
Regards
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) {
a=10;
msgprint(a);
});