I need to show a blue banner message when clicking save for IT knowledge article that in draft state. I try to use UI policies to show pop up message but it will break the ATF, but when use gs.showInfoMessage, it not appear.

Muhammad Qamar
Tera Contributor

I need to show a blue banner message when clicking save for IT knowledge article that in draft state. I try to use UI policies to show pop up message (alert) but it will break the ATF, but when use gs.showInfoMessage, the message not appear. Please help to suggest solution for this item

2 REPLIES 2

naveen14
Kilo Guru

Hi Muhammad,

Sol 1: 

You can write on submit client script & in script you can use condition as when state is draft.

when record state is draft and when ever they tries to click on save the message will show on screen

 if(state == "draft"){

g_form.addInfoMessage("write the text what ever you want");

}

 ------------------------------------------------------------------------------------------

 Sol 2:

You can write business rule : Condition is state is Draft, you can use "Display" option.

 

Regards,

Naveen.

Hi,

Thank you for the suggestion.

I try to do the second solution and I found out that my display message is like thisfind_real_file.png

Why is not showing the message beside info icon like normal? Do you know how can I fix this?
Below are the message that I set in Business Rule

find_real_file.png