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
sra gowthamsra gowtham 

Hai all,

if  users "Complete" a task(Status) and do not update the Call Result field then display error message like "Call Result required when status marked as Completed.
Validation Rule and Trigger code.
Niraj Kr SinghNiraj Kr Singh
Hi sra,

Please try this:

IF(
AND(IF( !ISPICKVAL(PRIORVALUE(Status),"Completed"),true,false),
IF(ISPICKVAL(Status,"Completed"),true,false)
),
IF( CallDisposition = null, true, false),
false
)


Error Message : Call Result required when status marked as Completed

If it will work, mark as ur ans to help other.

Thanks
Niraj