How to make a doctype readonly

I want to make a doctype Readonly after the completing the ist state in the workflow
i want to know how to make a doctype readonly using clientscript

Hi @amal_31845,

Without a client script, It’s possible.

Please set the eval condition in the ‘Read Only Depends On (JS)’

@NCP do i need to change every field individually

Alternatively, just set Allow Edit For to Administrator in your Workflow state.
If your doctype is submittable, you can alternatively set the docstatus = 1 for that state.

Yes @amal_31845