Make Read Only After Saving
Make Read Only After Saving
Use the method cur_frm.set_df_property to update the field's display.
In this script we also use the __islocal property of the DocType to check if the document has been saved at least once or is never saved. If __islocal is 1, then the document has never been saved.
![](https://storage.crisp.chat/users/helpdesk/website/6f1c2c7b8034d000/image_1ou3xq3.png)
Updated on: 31/03/2023
Thank you!