How to remove "Required Information" message on all catalog items in Service Portal?

kanishkab
Tera Contributor

Hi all,

I'm trying to simplify the catalog item view in the Service Portal.

By default, below the Order button, there's a line that says "Required information" when mandatory fields aren't filled. Since these required fields are already marked with an asterisk (*), The Product owner feels this message is redundant and may clutter the UI.

I saw that this message is coming from the SC Catalog Item widget, but this widget is read-only and out-of-the-box, so I couldn't modify it directly. As a workaround, I cloned the widget, removed the line of code that displays the "Required Information" message(but i think this only hides the label), and saved it as a new widget.

My question is:
Can someone help me with the right html script and What is the best way to apply this custom widget across all catalog items on the portal so that it replaces the default SC Catalog Item widget?

Also, if anyone has done something similar before, could you please share the line of code that needs to be removed(or the condition to tweak) to stop showing the "Required Information" message?

1 ACCEPTED SOLUTION

J Siva
Tera Sage

Hi @kanishkab 
Open the catalog item portal page and remove the highlighted widget.

JSiva_0-1747817927354.png


Open your custom SC catalog item widget and update the default value of "show_field_validation_messages" under option schema as "false"

JSiva_1-1747818034399.png

Now add your custom widget to the catalog item portal page

JSiva_2-1747818127428.png


Result:

JSiva_3-1747818155212.png

 

Hope this helps.
Regards,
Siva

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@kanishkab 

It's achievable. but why to do that?

I will suggest to train your customer about this rather than cloning the widget and making the changes and re-applying the cloned widget to the OOTB page.

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

Cheikh Ahmadou
Tera Guru

I suggest that also, better than updating OOTB

Mark Manders
Mega Patron

So you are starting with technical debt before you are even using the platform? Why? It literally shows what information they should enter. And yes, those are marked with an asterisk, but what if you have a long form and then click 'order'? You can see immediately that you forgot a field. 
Just because you can, doesn't mean you should. Educate and train people instead of just blindly follow what is asked.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark