function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kim_lebiczkim_lebicz 

Make a field Read Only after Save

Does anyone know if there is a way to make a field Read Only after the record is saved. I have created a custom button that creates a new case and pre-populates certain fields that I don't want to be edited after the record has been created. If I make the field Read Only the field will not populate. Any suggestions would be greatly appreciated.
saariko.ax241saariko.ax241
Might worth to try to create a new record type of the new case (the one with readonly fields) and the last action of the custom button would be to change the case to the new record type.
kim_lebiczkim_lebicz
Hmmm...interesting suggestion. I will try it out. Thank you for the reply.
kim_lebiczkim_lebicz
Can you give me an example of the code that would, upon save, change the record type? Thanks very much.