Requirement: Control info message visibility time in Incident form (Native, CSM, SOW)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Everyone
I have a requirement to display an info message on the Incident form. I display the info message through the business rule. Is it possible to control how long the message remains visible? When the condition is met and the info message is triggered, I need it to remain on the form for approximately 50 seconds.
Is there any way to configure this in Native UI, CSM Workspace, and SOW Workspace?
Kind Regards,
Deepika G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hey ,
Unfortunately this is a platform limitation — Business Rules run server-side and have no control over client-side UI behaviour like message duration.
The right approach is a Client Script:
you need to move this to a Client Script using a combination of g_form.addInfoMessage() and a setTimeout() to clear it after 50 seconds.
function onLoad() { //Type appropriate comment here, and begin script below if (g_form.getValue('state') == '1') { g_form.addInfoMessage('Your info message here'); var setTimer = ''; setTimer = setTimeout(setTimerDelay, 2000); /*to set the timer for 2 sec*/ function setTimerDelay() { alert('timer waits for 2 sec'); g_form.clearMessages(); } } }
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Aanchal