We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to edit the UI action on "Actions on selected rows" on sc_task table, under Approvers tab?

AbdurRahmanSnow
Tera Guru

Good evening.!
How to edit this UI action button "Request approval" on sc_task table, under Approvers tab?

AbdurRahmanSnow_0-1762793297346.png

I want to either edit it to write a script or, remove it? Please help. (Also, please ignore the other "Request Approval" button on the context menu. That is a custom button.)

AbdurRahmanSnow_1-1762793471698.png

@Ankur Bawiskar @Dr Atul G- LNG @Viraj Hudlikar 

1 ACCEPTED SOLUTION

tejarekanda
Tera Expert

I think, We can’t hide a UI Action from the list Choice (like on sc_task) using a condition 

However, we can disable the functionality of that UI Action instead.

I handled this by creating a Script Include to check the table name and then used it in the UI Action’s condition.
Script Include:

tejarekanda_0-1763040120067.png

 

Ui action:

tejarekanda_1-1763040169378.png

Result:
sc_req_item table:

tejarekanda_2-1763040241586.png


sc_task table:

tejarekanda_3-1763040299977.png

Regards,
Teja

View solution in original post

19 REPLIES 19

Voona Rohila
Giga Patron

Hi @AbdurRahmanSnow 

That UI Action will be on Approval table(The table that is linked to that related list) and not sc_task table

 

Check UI Actions on Approval table which has 'List Choice' checkbox to true and modify accordingly.

 

VoonaRohila_0-1762796466083.png

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
5x ServiceNow MVP

Hi @Voona Rohila .
Thank you so much for your reply. 
Since, this List choice button is also being used on RITM table, I don't want to modify the script. But how can we restrict this button to not be visible on sc_task table? Please check.

vignesh parthib
Tera Guru

Hi @AbdurRahmanSnow 

 

You can modify Ui Action using below url,  edit URL below Instated of Dev replace with your instance name

 

https://dev.service-now.com/sys_ui_action.do?sys_id=cc27b118c611227600a16605b1368aa4&sysparm_view=&s...

You can modify the data.

 

Thanks,
Vignesh
"If this solution resolves your issue, kindly mark it as correct."

Hi @vignesh parthib 
Thank you so much for your reply. 
Since, this button is being also used on RITM table, I don't want modify the script. But how can we restrict this button to not be visible on sc_task table? Please check.