I’m no coder, which is why I need some help with this. On form close (or save) I want to redirect the user to the previous page. I’m currently using a static URL redirect on close but it’s not exactly what I’m trying to accomplish.
The form is in a SharePoint online list, and the user is being directed there from a separate website (our 3rd party intranet site, hosted in Unily) via hyperlink to the NewItem.aspx link
The form is being opened in the SharePoint page (library)
The user should be sent back to the previous webpage they were on
Related, but tangential -
I’ve also noticed different results if I save the form vs. close the form - sometimes the JS will redirect me to the page I want, other times it will just take me back to the SharePoint list. Are the onsave and onclose 2 different JS commands?