Make UI Action Button visible

akashkekan
Giga Contributor

I have created a button "Raise Incident", the use case is it should only be visible when the task_category (choice field) is changed to "IT Service Management".  I gave the condition in condition field inside UI Actions, it's not working. 

1 ACCEPTED SOLUTION

Chaitanya ILCR
Kilo Patron

Hi @akashkekan ,

 

you have to save the record in order to make the UI Action to be visible for the mentioned category

 

if you want this to visible or hidden onChange of the category use onChange client script on the task category field 

 

refer this for the same

https://www.servicenow.com/community/itsm-articles/how-to-hide-show-the-ui-action-by-client-script/t...

 

Note: this won't work in the workspace

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@akashkekan 

are you sure the field name is correct and choice value you are comparing is correct?

If both are correct then it should work fine.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for the reply.

But yeah...field name as well as choice value...i checked...both are correct. Still not working.

@akashkekan 

then your record should be an existing record, then only button will be visible.

Also is that a form button?

where are you checking this native or workspace?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

yes its existing record, the button should be visible only for the existing records and not the new record.

It is the form button.

I am checking it in native.