Hide a field in catalog submit form in service portal

MK-955
Tera Expert

Hi Developers,

I have a requirement to hide a field in the service portal i.e when i am submitting the catalog RITM form submit button above price field is there, i want to hide it. can you please help me. I have added the screen shot bellow.

 

MK955_0-1711045084899.png

 

1 ACCEPTED SOLUTION

MK-955
Tera Expert

Hi Rajput, 

Thanks for the replay, actually this price variable not listed in the catalog item variables or variable sets. after given related values , after final "PRICE" it is showing. Price field where it is coming I am unable to finding and   it is coming from widget or page not getting. where i need to hide no idea for me.


View solution in original post

5 REPLIES 5

Sandeep Rajput
Tera Patron
Tera Patron

@MK-955 Please refer to https://docs.servicenow.com/bundle/washingtondc-servicenow-platform/page/product/service-catalog-man... to know the steps to hide price for the catalog item.

 

If you wish to do it for a specific item then 

  1. Navigate to All > Service Catalog > Catalog Definition > Maintain Items.
  2. Open the relevant item definition.
  3. Select the Omit Price on Cart check box.

    The price does not appear in the catalog listing or when the item is added to the cart. The price is listed as "-" on the edit cart, order confirmation, and order status screens.

     

    Hope this helps.

MK-955
Tera Expert

Hi Rajput, 

Thanks for the replay, actually this price variable not listed in the catalog item variables or variable sets. after given related values , after final "PRICE" it is showing. Price field where it is coming I am unable to finding and   it is coming from widget or page not getting. where i need to hide no idea for me.


No, this is not a variable, it is just a field on all service catalog item records. I believe this is true for both HRSD and ITSM catalog items, but my experience is only with ITSM.

The field is on the "sc_cat_item" table and the column is "omit_price" (Label says "Omit price on cart").

You can also apply a global setting to all catalog items by going to "Service Catalog > Catalog Administration > Properties."

This is what @Sandeep Rajput is referring to!

@MK-955 Omit Price on cart is a checkbox available on the Catalog item form.

 

Screenshot 2024-03-22 at 12.25.11 AM.png

In case if this field is not added on your Catalog item form view then add it using the form layout configuration and check the checkbox to hide the price of the catalog item on the cart.