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. ?
1 Like
Disable:
$('.primary-action').prop('disabled', true);
Hide:
$('.primary-action').prop('hidden', true);
4 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
its Worked but When the Form Get Refresh Submit Button gets Enabled again
that should not happen. any Solution For this???
write code in refresh event
1 Like
i want to disable the resend button but not working version-14. currently using below code
$(“Button[data-fieldname=resend]”).addClass(“btn-disabled”);
Following will also work fine.
frm.page.clear_primary_action();