Hide "Add button on the item using a custom script

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);;
});

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

Worked. Thank you.

1 Like