This project has moved and is read-only. For the latest updates, please go here.

Back button issues

Feb 22, 2016 at 7:39 PM
Anyone have issues with the Back button in the browser and SPServices?

I have some SPServices calls on the EditForm.aspx page of a list, one of them to filter dropdown.

I also have some Related Items web parts at the bottom of the form.

When I edit the list item, the dropdown is filtered properly, and the value in it is the value of the list item I am editing.

But if I click "new item" or "Edit Item" on one of the related lists, and the form displays for that related list item. Then if I click the Back button in the browser, it takes me back to the original list item's EditForm, but the filtered dropdown is now defaulting to the first item in the list, not the value in the list. Of course, if the user saves it, it will save with a different value than originally in the drop down.

Any idea why the back button is causing it to list the originally selected value?
Feb 24, 2016 at 3:54 PM
Yeah, that's not going to work. The back button takes you back to the previous page, not the previous page's state. You can override the default back button behavior on the page, but it gets complicated.