Add a warning banner to a page or form?

rarootes
Tera Contributor

How can I add a warning banner to a page or form?

1 ACCEPTED SOLUTION

Andrew Barnes -
ServiceNow Employee
ServiceNow Employee

Greetings Rarootes,

 You can add a message in an onload client script. g_form.addErrorMessage('message');

A display business rule can also do this, using the add message check box or gs.addErrorMessage in script.

-Andrew Barnes
Join me at Developer Blog

View solution in original post

2 REPLIES 2

Ahmmed Ali
Mega Sage

If you want to add on the form, you can create on display BR on the table and can add message using gs.addErrorMessae("message").

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Andrew Barnes -
ServiceNow Employee
ServiceNow Employee

Greetings Rarootes,

 You can add a message in an onload client script. g_form.addErrorMessage('message');

A display business rule can also do this, using the add message check box or gs.addErrorMessage in script.

-Andrew Barnes
Join me at Developer Blog