logo

NJP

How to hide/show the UI Action by Client Script

Import · Aug 24, 2022 · article

In this article, we will see how to hide/show the UI Action by Client script.

There is an Out of the box script which will give an idea to understand how to configure hide/show UI action.

Open Personal developer instance and go to Client script list.

In the Client script List, Please search “Show On hold reason when on hold ticked” in Name column.

Open the record and there we can find the Out of the box script.

image

Here, state_model is the Action name of the UI Action which we want to hide/show.

image

To see how it will work, Open Change request form which should be in Schedule state. Check True/False On Hold field, while doing this we can observe Implement UI Action.

Thanks

View original source

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