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

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

kanishkab
Tera Contributor

Hello,

Thanks for the quick response , 

After applying the changes to hide the 'Required Information' section after setting show_field_validation_messages to false, the 'Order Now' and 'Add Attachment' buttons have shifted below the form fields instead of appearing on the right side as before. Could you please help me understand why this layout change is happening and how I can restore the buttons to the right side of the page?"(attaching image for reference)

 

@kanishkab Please compare your custom widget HTML with the OOB one.
I tried this in different instances. Everywhere it's working fine.

Cheikh Ahmadou
Tera Guru

Update the value of "show_field_validation_messages" under the option schema of the widget SC catalog item and set it to false.