- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2016 07:10 AM
Is it possible to close the browser once a record producer has been submitted? Or, is it possible to redirect the user to the log out page with a message stating that their incident has been submitted?
Is it possible to include a cancel button on a record producer?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2016 07:36 AM
Hi Blair,
Clarifying confusion
To Close the Window
Write a on submit script which actually run window.top.close(); and close the window after submitting. We need to make sure that this on submit should be the last running onSubmit script
To redirect
Use action.setRedirectURL("URL") in Record producer to send the use to sign out page.
Hope this helps..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2016 07:36 AM
Hi Blair,
Clarifying confusion
To Close the Window
Write a on submit script which actually run window.top.close(); and close the window after submitting. We need to make sure that this on submit should be the last running onSubmit script
To redirect
Use action.setRedirectURL("URL") in Record producer to send the use to sign out page.
Hope this helps..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2016 07:55 AM
Ketan,
Ok - that works perfectly. Now -- is there a way to get the incident number on the onSubmit script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2016 07:59 AM
Honestly i never tried this one but producer.sys_id gives you the new sys_id which is created. You may check by queering Incident table using this one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2022 06:53 AM
Closing Record producer OnSubmit() client script using window.top.close(); throws javascript error in browser.
Using - top.window.close(); works fine but shows --
"Leave Site?
Changes you made may not be saved?
Leave Cancel"
How to prevent this displayed?