次の方法で共有


Changing the ‘return URL’ for SharePoint forms

Here’s a quick little tidbit that will help when building SharePoint applications. By default, when users fill out a SharePoint form, they are navigated back to the "All Items" page after pressing OK. You can easily change this behavior by altering what is in the “source=https://…” part of the URL "query string" on the form page.

Example: Let's add a link to the Announcements “New Item” form on the home page, so that it returns the user back to the home page after they press ok.

Step 1) Add the following URL to the home page:
https://<site>/Announcements/Forms/NewItem.aspx?Source=https://<site>/default.aspx

That’s it! :) Once the user presses OK, the form will read the “source=” part of the URL and navigate the user back to that page.

Thanks to Jason and Andre for suggesting this blog tip!