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
learn_sfdclearn_sfdc 

workflow to check prior value and update checkbox

I have created a java script if my checkbox field is true then pop up will appear, 
to update this checkbox i have created a workflow when ever the status changes from closed to open then checkbox field will get updated and pop up will appear.

since checkbox is true as per above rule criteria, pop up appear everytime for any update in case object, which i really do not required.

i have tried below formula

AND( 
ISPICKVAL(Status,"Open"), 
OR( 
ISPICKVAL(PRIORVALUE(Status),"Closed") 

)

and field update is

New Field Value = "True"

so how will i handle this?

Thanks
Banwari kevat1Banwari kevat1
Hi sj_dev,
What is Evaluation Criteria for your workflow rule?
learn_sfdclearn_sfdc
"Created and its every time its edited" if i change it to Created and everytime it meets its criteria then it throws me error by telling PRIORVAL is not valid
RD@SFRD@SF
Hi sj_dev

When using the "Created and everytime it subsequently meets the criteria" it would run only once when the status is changed to Open from any other value and functions like priorvalue and ischanged cannot be used with this entry criteria

Are you trying to do something only when the status changes from closed to open?

Kind regards
RD