+ 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.