I want to get the value of a new customized field should change whenever the document got changed any of the value
Please check syntax:
frappe.ui.form.on('Your DocType', {
validate: function(frm) {
frm.set_value('another_field', frm.doc.your_custom_field);
frappe.msgprint("Custom Field Value Changed: ", frm.doc.your_custom_field);
// add logic your own way
},
your_custom_field: function(frm) {
frappe.msgprint("Custom Field Value Changed: ", frm.doc.your_custom_field);
// add logic your own way
}
});
1 Like