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
Ian Lin 439Ian Lin 439 

Activated orders should be editable by Admin only after status change.How to do this

ayu sharma devayu sharma dev
Hello, 
You can write down a validation.
 
IF( 
    AND( 
        OR( ISPICKVAL(PRIORVALUE(Status), 'Acitve'), AND( ISPICKVAL( Status, 'Acitve' ), ISPICKVAL(PRIORVALUE(Status), 'Acitve')) ),
        $Profile.Name != 'System Administrator'), 
    true,
    false   
 )


Let me know if it works, Thanks.