diff --git a/frappe/public/js/frappe/form/form.js b/frappe/public/js/frappe/form/form.js index 252010d36f..b30a232b51 100644 --- a/frappe/public/js/frappe/form/form.js +++ b/frappe/public/js/frappe/form/form.js @@ -1298,6 +1298,15 @@ frappe.ui.form.Form = class FrappeForm { // ACTIONS print_doc() { + if (this.is_dirty()) { + frappe.toast({ + message: __( + "This document has unsaved changes which might not appear in final PDF.
Consider saving the document before printing." + ), + indicator: "yellow", + }); + } + frappe.route_options = { frm: this, };