Try ERPNext Buy Support Partners Foundation

Make a form read only after save

Hi Everyone,
I would like to know on how I can make all fields of a form read only after save when I click on a custom button, I don’t want to submit the form.
Thanks

Hi @cha,
please refer this link https://github.com/webnotes/wnframework/wiki/Client-side-scripting.

Thanks @sagar,
Though this script can only make one field read only and I I’m looking for one that will make the entire form read only after clicking on a button.

do you wish to make it read only for everybody or for want to keep it editable for some roles ?

Make it read only for everybody. But after click of a button.

I wanted to do this too, but I realize the only way to do it client side is to run through every single field in the script.