Hi,
i want to hide my submit button on a doctype. with help of frm.disable_save();
i am able to hide save button. any solution for hide submit button. ?
Disable:
$('.primary-action').prop('disabled', true);
Hide:
$('.primary-action').prop('hidden', true);
2 Likes
can you specify where to use this code
In a Client Script, for example:
https://docs.erpnext.com/docs/v13/user/manual/en/customize-erpnext/client-scripts