'Lock States in Salesforce

How can I do with a validation rule so that, for example, from the New state I only get to click Assigned. The rest of the states should give an error message or blocked (I don't know if it can be blocked)



Solution 1:[1]

Read up about PRIORVALUE() function, for example https://developer.salesforce.com/forums/?id=906F00000008pFfIAI

Something like this should do the trick

ISCHANGED(Status)
&& ISPICKVAL(PRIORVALUE(Status), 'New') 
&& !ISPICKVAL(Status, 'Assigned')

This is also an interesting take: https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A7SPhSAN

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 eyescream