Hide UI Action form button with UI ACTION VISIBILITY

Floridalife
Giga Expert

We want to hide the UPDATE and SAVE UI Action form button on the approval form

2016-03-07 16_56_12-ServiceNow.png

I added the approval view with EXCLUDE for the save button but that didnt work, when i set it to INCLUDE it hides it for all tables. its doing the opposite that it should or am i missing something?

2016-03-07 17_00_22-ServiceNow.png

1 ACCEPTED SOLUTION

marcelo_moreli
Mega Guru

The Approval form is not Approval view, the view used on the Approval form is the "Default" one.


If you want to hide it just on the approval form, do the same you did for the table "new_call", adding a condition to make sure the Table is not "sysapproval_approver" (... && current.getTableName() != 'sysapproval_approver').



Hope it helps!


View solution in original post

8 REPLIES 8

vant
Tera Expert

This UI Action visibility applies globally, since you're applying it to the Global table. In order to hide it only one the Approval table, I would suggest creating a new UI Action for only the approval table, with the same action name, and setting the Condition to false or 1 == 0 to make sure it doesn't show.


Oh, I missed your middle question, I think the view is called Default view, not Approval.


marcelo_moreli
Mega Guru

The Approval form is not Approval view, the view used on the Approval form is the "Default" one.


If you want to hide it just on the approval form, do the same you did for the table "new_call", adding a condition to make sure the Table is not "sysapproval_approver" (... && current.getTableName() != 'sysapproval_approver').



Hope it helps!


THanks ! so instead of adding that to the condition, i simply selected the Table Approval and uncheck FORM BUTTON and it works, this is the best approach ?



2016-03-08 09_42_17-ServiceNow.png