glz
March 11, 2020, 2:23pm
1
Is it possible to hide the below button using a custom script? It’s normally mis-used since the stock entry from it, are not subject to workflow controls.
I have hidden it as of now, but that has meant changing the core item-dashboard.min.js, which is not deal.
Try this one
$(document).on(‘mouseenter focus’, ‘.btn-move,.btn-add’, function(events){
$(this).prop(‘disabled’, true);;
});
glz
March 12, 2020, 5:20pm
3
I did this. It didn’t work.
frappe.ui.form.on(“Item”, “mouseenter focus”, ‘.btn - add’, function (frm) {
(this).prop(‘disabled’, true);
});
“.btn-add” it should be like this .dont give unwanted space