How to hide submit button in catalog item

Arkesh Kumar
Giga Guru

I want to hide submit button in catalog item

 

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Shivani Singh1
Tera Guru

Hi Arkesh,

Create ui policy/catalog client script

Script: 

this.jQuery('button').hide();

Please mark helpful if it solves the purpose

View solution in original post

12 REPLIES 12

For Service Portal you can modify the widget (item widget) css.

 

Example

.form-group {
display: none;

You should use a Content Item with the Catalog Content type for this sort of scenario where it is just for info and not for submitting a request.

Shivani Singh1
Tera Guru

Hi Arkesh,

Create ui policy/catalog client script

Script: 

this.jQuery('button').hide();

Please mark helpful if it solves the purpose

Hi Arkesh

Any update in progress of the issue?

I'm curious as to why you chose the DOM manipulation method to solve your issue?  I know there are lots of ways to do things in ServiceNow, BUT some are better than others.

It seems like you just want to display something to your users, which is exactly what Content Items are for.  No need for scripts to deactivate the Submit button because there is none.