Close window after record producer submitted

Blair5
Tera Guru

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?

1 ACCEPTED SOLUTION

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..


View solution in original post

8 REPLIES 8

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..


Ketan,



Ok - that works perfectly. Now -- is there a way to get the incident number on the onSubmit script?


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.


Dhirendra Singh
Mega Sage

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?