Hi @nikhil1,
I am not sure if I understand you correctly. Typically, change triggers for form fields can be defined in the custom script of the affected doctype, simply by using the field’s name as key. Something like this
frappe.ui.form.on([DocType], {
[trigger]: function(frm) {
[function];
}
});
For example on DocType Item, when changing description
frappe.ui.form.on("Item", {
"description": function(frm) {
frappe.msgprint("Changed description");
}
});
You can find more information in Developer Cheatsheet · frappe/frappe Wiki · GitHub. Hope this helps.