logo

NJP

Dynamically hide & show "Add attachments" in Service Portal Widget

Import · Apr 01, 2018 · article

There was a question on the community where the user wanted to hide the "submit" & "Add attachments" buttons when the catalog item was of the type "Content item". This make sense since those items isn't something you would order and just for information.

In this demo I show you a way to do it in the Kingston release. In this release thou the "submit" is already hidden, but then "Add attachments" is still there and you can take the same approach as I do here to hide the submit as well. And of course you can take this functionality and hide & show other elements you want to on a widget.

//G

image image

View original source

https://www.servicenow.com/community/developer-articles/dynamically-hide-show-quot-add-attachments-quot-in-service/ta-p/2329725