I have a form that I want to use the standard thank you page redirect if the user selects the canned "Save" button.
I also have a custom button that would "save" the current form contents (NewForm.aspx) and redirect the user to a fresh form to enter another item.
I am having a great deal of difficulty figuring out the javascript to submit and redirect to NewForm.aspx , redirect works but submit is not working ....
$(this.form).submit()
window.location.replace("https://************************/sites/SupportRequest/NewForm.aspx");