// Use frappe.validated = false; to prevent the save. // Use frappe.validate = true; to confirm the save process. // Note: This will not work for synchronous calls such as dialogs so use // a flag value like let showDialog; to help with the control flow.