UI Builder button options

Russell Abbott
Kilo Sage

I have abutton on the CMDB Data Certification tasks, I can see where to disable the logic behind the listed options in the 'Handle Reassign Action' client script, but I can't see where to hide or remove the actual list option, say if I only want to show 'Assign to me' and hide 'Request reassignment'.


1.jpg

1 ACCEPTED SOLUTION

Ajay61
Kilo Sage

Hi @Russell Abbott ,

I have tried for similar functionality on incident form(SOW). Where i have a button similar to yours.

Ajay61_1-1731300635428.png
Solution:
1.Navigate to Declarative Actions> Form Action Layout Groups. Select the record you want to update. In my case, I have selected the record with table as 'incident'.

Ajay61_2-1731300843113.png

2. Remove the button from Action field you want to hide/ remove on the form.

Ajay61_3-1731301113014.png

 

It worked for me, please try for your scenario.

 

 

View solution in original post

2 REPLIES 2

Kevin83
ServiceNow Employee
ServiceNow Employee

In my case I've slightly different buttons, but hopefully this will help you find what you are looking for.

1. I open devtools and I inspect a button in the action bar 
2. I navigate up the dom until I find the component now-record-common-uiactionbar component and I select that component.
3. In the run `$0.getProperties()` in the console.
4. I expand the actionNodes prop and find the one I want in my case "create incident task"
5. I then copy the id and browse to /sys_metadata.do?sys_id=2f605ad653123010ae50ddeeff7b1262
6. now I am on the meta data record and I can deactive the record

Screenshot 2024-11-07 at 10.25.33 AM.png

 

 



Ajay61
Kilo Sage

Hi @Russell Abbott ,

I have tried for similar functionality on incident form(SOW). Where i have a button similar to yours.

Ajay61_1-1731300635428.png
Solution:
1.Navigate to Declarative Actions> Form Action Layout Groups. Select the record you want to update. In my case, I have selected the record with table as 'incident'.

Ajay61_2-1731300843113.png

2. Remove the button from Action field you want to hide/ remove on the form.

Ajay61_3-1731301113014.png

 

It worked for me, please try for your scenario.