How to make business rule message appear in portal form.

Lucas Jesus
Kilo Explorer

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!

6 REPLIES 6

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!

Gaurav Shirsat
Mega Sage

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?

find_real_file.png

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/