Remove Approve Button in List Context Menu

gdk
Kilo Contributor

Hi All,

I want to hide/remove the Approve button in List Context Menu when the State is No Longer required and also for particular approval_admin user.

I have given the condition:

cuurent.state == 'requested' && gs.hasRole('approval_admin')   (With this Condition, The Approve Button should only be visible when the State is Requested)

But I see Approve button Option in List Context Menu after the State has changed to No Longer Required.

I have seen several questions on this issue in the Community but I did not find any luck in solving the issue. I would really appreciate if someone gives a right answer.

Thanks,

GK

5 REPLIES 5

You cannot use the current object in list context menu UI Action conditions.