gs.addInfoMessage disappearing!

Community Alums
Not applicable

Hi All,

I am currently developing a form page for my company using record producers.

After clicking submit on each form, I am using the below script within the Record Producer - Generated Record Data - Script -

current.u_record_producer = "sys_id";

executeScript();
gs.addInfoMessage("Thanks for submitting your Form - you'll receive an email shortly");
producer.portal_redirect = "form_homepage_url";

function executeScript(){	
	current.form = "sys_id";
	current.requested_by = gs.getUserID();
}

This is to -

  • Create a record
  • Show a message
  • Return user to form homepage

What is currently happening after submit, it will redirect the user back to the form home page and display the message for less than a second.

Can this message stay for longer or remain until user closes the message?

I have tried switching gs.addInfoMessage and producer.portal_redirect around but it produces the same outcome.

Any help would be much appreciated.

Many thanks,
Alex

3 REPLIES 3

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

Look for Service Portal >> Properties from application navigator & then look for property as below.

find_real_file.png

Try changing the number to check the difference.

In case, it still does not suffice you can check link as well.

Community Alums
Not applicable

Hi Jaspal,

Thanks for your response.

Unfortunately this also doesn't work, I have tried it at both 10 seconds and 0.

I'm not sure if the issue is due to it also redirecting the user to the home page.

Any more advice?

Thank you,
Alex

Rishabh Jha
Mega Guru

Hi @Alex ,

This is a known issue, and has been already listed on the HI portal. Unfortunately, it doesn't seem to have a workaround currently. Please refer to the HI portal case link below:

https://hi.service-now.com/kb_view.do?sysparm_article=KB0713668

 

Thanks & Regards,

Rishabh Jha

Aavenir (https://www.aavenir.com/)