Change UI Action button label onLoad

S_53
Kilo Guru

Hello there!

We have a UI action button called 'Close Task' on sc_task table. But just for one Catalog Item Task, I want this to be renamed as 'Close/Approve' (something like - if catalog item is xyz, then label should be 'close/approve' else remain as 'close task').

Is it possible to change the label of UI Action button without creating a new button and only show it for this catalog item?  

 

Thanks in advance!

2 REPLIES 2

Shrutika Surwad
Kilo Guru

Hey,

Check the following link. I hope this will helps you!

 

https://www.servicenowguru.com/system-ui/ui-scripts-system-ui/modifying-label-form-fields-client-scr...

 

Thanks,

Shrutika Surwade

find_real_file.png

Vishal Khandve
Kilo Sage

Hey hi,

I just tried below link  code and its wokring for me.

 

https://community.servicenow.com/community?id=community_question&sys_id=c054cf29dbd8dbc01dcaf3231f96...

 

Thanks,

Vishal