How To Hide Submit Button With Script

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


$('.primary-action').prop('disabled', true);


$('.primary-action').prop('hidden', true);

@rmeyer Thank you. it’s working fine.

can you specify where to use this code

In a Client Script, for example:

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