Hi Everyone,
I need to show the delete button only if it is Admin, Record Owner is Logged in User and Status of the record is cancelled. It is on custom object so I am using Dynamic Form.
I have created a formula field on custom object to check Owner.Id equals User.Id. Dynamic form filter is (1 or 2) AND 3.
The issue is, Delete is not showing for Record Owner when the status is cancelled.
Kindly suggest where I am making the mistake.
Thanks!
12 réponses
Hi @Sachin RL
You have to use the below formula in your created formula field.
AND
(
ISPICKVAL(Status__c, 'Cancelled'),
OR
(
$User.Id = OwnerId,
$Profile.Name = 'System Administrator'
)
)