Hi @Jiri_Sir you can use Promise function on the client script:
before_save: function(frm){
return new Promise(function (resolve, reject) {
// This will cancel save
// frappe.validated = false;
// reject();
// This will continue to save
// var negative = 'frappe.validated = false';
// resolve(negative);
// If you comment all of it
// Save button will be disabled (like it still processing)
})
},
Here my working function you can use, although i’m using it on before_save hooks