how to hide display message on service portal which is applicable to view only in native UI?

ujjwala_678
Tera Contributor

Hello Experts,

I have a display business rule written on policy table which is showing display message on native UI as well as service portal, Is there any way i can hide this info message on service portal

Thank you in advance,

Ujjwala

3 REPLIES 3

Sagar Pagar
Tera Patron

Hi @ujjwala_678,

 

Have you tried by creating onload Client scripts/ onload Catalog client scripts with g_form.clearMessages(); for portal only?

 

Type: Service Portal 

 

g_form.clearMessages(); // it will clear the info messages

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

Hello @Sagar Pagar ,

Thank you so much, It's working for service catalog but not for policy form which is present on widget

Any code we can add there to hide the message?

Thanks,

Ujjwala

Hi @ujjwala_678,

 

If it is widgets level may be you can remove it form widgets scripts.

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow