How to make business rule message appear in portal form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2022 04:17 PM
I'm creating a business rule that when the registration is this week, it displays the message at the top of the requested service form, the message is "Attention: Pay attention, because the date of this service is this week!"
On the back-end it's working, everything is beautiful and perfect, but on the portal no message appears.
This is just an exercise for the company I work for.
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2022 06:56 PM
Hi,
Where you have the business rule setup and where you're showing information on the service portal are different. Meaning, the infomessage in the business rule won't display on the portal in this specific scenario.
You'd have to create a custom widget to evaluate if the table involved is 'x' and if the condition is 'y' then display message 'z'.
Example of what I'm referring to can be found here: https://community.servicenow.com/community?id=community_question&sys_id=ced048dedbaf58d04aa5d9d96896...
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2022 08:48 PM
Hello Lucas,
Wish You a Very Happy New Year.
Business Rule are the Server Side Code. i.e. server-side script that runs when a record is displayed, inserted, updated, or deleted, or when a table is queried.
Now, There are some scripts which can display a Message as You stated in your question, are Client Script or UI Policy. all these run only on your Browser.
Now If you make combination of Client Script and Server Script(Client Callable Script Include) then via Client Script you can populate message on screen.
If You have written Client Script, Please check that You have Written Client Script/Catalog Client Script:-
check below is done or not?
it should be All
Please Let me Know, if you any other concern.
Mark my Response as Correct or Helpful, if you find it Appropriate.
Gaurav Shirsat
https://www.linkedin.com/in/gauravshirsat/