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

Chuck Tomasi
Tera Patron

UI actions (including list choices) are enabled or disabled based on the condition in the UI action. Please look at the condition in those appropriate UI actions to ensure they are disabled based on your requirements.



UI Actions - ServiceNow Wiki


Hi chuck,



I don't want disable completely,if any one of the record is Approved, It should get disable.


How can I get the list of related records to that particular change record in the script?


Please help me with the script if possible.



Thanks,


Priyanka.


Hi Priyanka,



This sounds like it may be better addressed via the workflow approval activity. If you want the others to be disabled when you get one approval, check the settings in that approval activity to say it is approved (or rejected) when the first person responds. Once that happens, the others change to "no longer required" and approve/reject are no longer valid on those approval records.



Based on your image, it appears there are two different approvals happening (one at 2:45 and one at 3:07). Since one of the 2:45 approvals was approved, it appears you need all approvers to approve before the workflow activity continues.



Approvals - ServiceNow Wiki


If we do from workflow the ui action choice list(approve/reject) are always shown in the drop down.


Among the approval records of specific change request, if one approver is approved it should get disable.