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

Require a field based on results of picklist

I've been searching for a while, can't get to the right answer . . . hoping someone out there has done this before.
In Tasks, when a certain status is selected from the picklist (completed), I would like to make a custom field on the page required to be nonblank.
Harry JamesHarry James

If the custom field is a text field, the validation rule would be:

ISPICKVAL( Status , "Completed"),
LEN( Test_Task__c ) =0)

If the custom field is other than text, you can probably use the ISNULL function in the second clause of the rule.