gs.addInfoMessage disappearing!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 06:26 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 06:33 AM
Hi,
Look for Service Portal >> Properties from application navigator & then look for property as below.
Try changing the number to check the difference.
In case, it still does not suffice you can check link as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 06:41 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 06:51 AM
Hi
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/)