Info Messages in UI pages after form loads

Pallavi Thumma
Tera Contributor

Hi All,

    We have a use case to trigger approvals on the HR case form and it will be notified to the approvers using custom notification on approval table. Whenever the approver clicks on the approve/reject link from the notification the approval record should be updated as approved/rejected and re-direct to the case form in HR Agent workspace and it should display one Info message saying "The record was approved/rejected". If another approver tries to update the record then it should display one more info message saying "The record has been approved/rejected already".


    Currently I can able to achieve it using UI page except showing the Info messages after the form loads in HR Agent Workspace. I tried using alert /Info messages in client script but they are showing before the form loads. Could anyone suggest how to display Info messages after the form loads

Thanks in Advance.

4 REPLIES 4

John Zhang1
Kilo Patron
Kilo Patron

Please try to use   spUtil.addInfoMessage("Your message");

 

If my reply is Helpful/Correct, please mark the answer as Helpful/Correct. 

Hi John,

Thanks for answering.

I have tried this solution but it is not working in my UI page. I have written this line in the HTML script of my UI page inside g:evaluate tag.

find_real_file.png

Could you suggest if I need to try in any other way.

 

The following post -Control where system messages appear on a UI page? have your answer you are looking for.

Hi John,

Thanks for providing the link!!