The CreatorCon Call for Content is officially open! Get started here.

How to disable Approve/Reject in List choice?

priyanka154
Mega Expert

Hi,

In change Request there is a Approver Related list,

When one of the approver approves the request, then In the drop down, it should disable the Approve/Reject choices

How this can be done?

1)

find_real_file.png

2)

find_real_file.png

Thanks,

Priyanka

20 REPLIES 20

Hi Abhinay,


Sorry for the late response, I tried this but no result. I faced the same issue as you mentioned in the previous comment.


Any help is really appreciated.



Thanks,


Priyanka


What was the issue? It should not update anything even when you click the UI action.


Yes its not performing any action.


Try Changing the UI Action condition as below



(gs.hasRole('approval_admin') || isApprovalMine(current) ) && current.state != 'approved'


priyanka154
Mega Expert

It got worked by giving the condition in Approve (list choice=true) ui action as


(sysapproval_approver.state!='approved')



This code is working in Helsinki but not in Geneva.


Any Idea, Please suggest ctomasi abhi_r



Thanks,


Priyanka