Displaying an info message at the top of the page the user is redirected to after the Record Produce

Elton2
Tera Contributor

Hi everyone, how are you?!

I have a “Record Producer” that I am using in the Portal, it is generating the Record with Attachment in the Table, but I am trying to use  gs.addInfoMessage("File sent successfully!!!"), but this is not working, the message does not appear at the top of the page.

 

Script of Record Producer:
gs.addInfoMessage('File sent successfully!!!');
producer.portal_redirect = "test_portal?id=test_homepage";

(Example Attached 1)

 

Obs.: Sometimes, when I submitted the form, the message appeared at the top of the page, but then it did not appear anymore. (Example Attached 2)

 

Please, could anyone help me with any tips to be used within Record Producer?

 

Thanks 😃

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Elton2 

are you saying it's showing only for limited amount of time and you want it to be shown always?

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Elton2
Tera Contributor

@Ankur Bawiskar ! How are you?!

 

I need this message to show at the top of the page, only when the form with the attached file is submitted by the User.

Obs.: When the user attaches the file, he clicks on the "Send/Submit" button, then the Message has to appear on Top and the page redirected..

 

Tks for your support!

@Elton2 

how does the form look like?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Elton2
Tera Contributor

Hi @Ankur Bawiskar , how are you?!

In the Record Producer itself at the bottom (tabs), there is the Catalog Client Script, so inside it, I changed it to Onsubmit, used g_form and inside the Script included gsInfoMessage(" ").

 

Tks very much for you attention!!!