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

K10
Kilo Guru

Honestly Yes Possible.



You can write the onsubmit script on record producer. Need to make sure that the script runs at the last in order.


If you want to redirect the user to signout page you can include the action.setRedirectURL("URL") in the record producer script;




How would I do it in an onSubmit script?


You can use



document.location = "Signout URL";


Ketan,



I was confused by your answer initially. I thought meant that I could close the window with an onSubmit script. It looks like you're saying that I can redirect onSubmit or do a setRedirectURL within the record producer script. Is that true?