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
Jenell_LJenell_L 

Validation Help (again)

I have a checkbox on an Opportunity which in a previous save was checked. In subsequent saves I want to validate that it has not changed and only provide an error if it has.

A few possible scenarios here that I have but am not sure how to execute.

- An IFCHANGED based on the box previously being checked.
- Lock the field after it's been checked.


On another note is there a way to say, "Are You Sure" you want to change a field rather than stopping it from being changed?




NPMNPM

Probably a combination if PRIORVALUE and ISCHANGED functions would be needed.  I do not think there is an Are You Sure capability without custom code.

Not tested, but a place to start:

AND(

       PRIORVALUE(checkboxfield) = TRUE,

      ISCHANGED(Checkboxfield)

     )

 

 

 

 

Jenell_LJenell_L
Thanks! That did work. I'm slowly getting the hang of this. :) Appreciate the help.