Check if the doctype is modified

How to check if the document is changed before save or saved without any changes?

1 Like

Try

frm.doc.__unsaved will check for new changes added in doctype

if (frm.doc.__unsaved){
	frappe.throw(__("Please save the document "));
}
2 Likes

@Hafees_Kazhunkil Thank you for your responding

This is javascript, is there any code in python?

1 Like