Blog

/
How to Open a Specific Item's Edit Form in SharePoint Document Library Using URL Redirection
Published Date - 

How to Open a Specific Item's Edit Form in SharePoint Document Library Using URL Redirection

item-edit-sharepoint-document-library

In SharePoint, you may want to provide users with direct access to the edit form of a particular item in a document library or list. Instead of manually navigating to the item and clicking edit, you can create a URL that redirects users straight to the edit form of the desired item.

Why Use URL Redirection for Edit Forms?

There are several scenarios where redirecting users to the item’s edit form can be useful:

Streamlined Workflows: When users need to frequently update metadata or document properties.

Task Automation: Automating the redirection for approval or review workflows.

User Convenience: Reducing the number of clicks needed to access important information.

Understanding Different Page Types in SharePoint URLs

When constructing a SharePoint URL for redirection, you can choose different Page Types to open specific forms:

  • PageType=6: Opens the edit form of the item.
  • PageType=4: Opens the display form (read-only view) of the item.
  • PageType=8: Opens the new item form, allowing users to create a new document or list item.

Step-by-Step Guide to Creating Direct Links for Different Forms

1. Get the Item ID

Each document or item in a SharePoint document library has a unique ID, which you’ll need for opening the edit or display form.

2. Construct the URL

Here’s the general format of the URL for different forms:

https://[Your SharePoint SiteURL]/_layouts/15/listform.aspx?PageType=[Type]&ListId=[ListGUID]&ID=[Item ID]

Replace [Type] with the appropriate PageType value:

  • For edit form (PageType=6)
  • For display form (PageType=4)
  • For new item form (PageType=8)

3. Retrieve the List GUID

To find the List GUID:

  1. Go to the document library or list.
  2. Click on "Library Settings" or "List Settings."
  3. The URL in your browser will contain List= followed by the GUID.

4. Example URLs

Here’s how the URLs would look for different forms:

Edit Form (PageType=6): EditForm.aspx

https://yourcompany.sharepoint.com/sites/yoursite/_layouts/15/listform.aspx?PageType=6&ListId={3B95E68C-2B4F-4A69-A307-15DF785B2E34}&ID=9
edit-form

Display Form (PageType=4): DispForm.aspx

https://yourcompany.sharepoint.com/sites/yoursite/_layouts/15/listform.aspx?PageType=4&ListId=3B95E68C-2B4F-4A69-A307-15DF785B2E34&ID=9
display-form

New Item Form(PageType=8): Upload.aspx

https://yourcompany.sharepoint.com/sites/yoursite/_layouts/15/listform.aspx?PageType=8&ListId=3B95E68C-2B4F-4A69-A307-15DF785B2E34
New Item Form

5. Use the URL in Hyperlinks or Buttons

You can now embed these URLs in emails, buttons, or dashboard links. Depending on the PageType value, users will be taken directly to the edit, display, or new item form.

6. Key Considerations

  • Permissions: Ensure users have the necessary permissions to view or edit the forms.
  • Security: Avoid exposing sensitive data in the URL, and make sure permissions are correctly set.
  • User Experience: Consider the user flow after opening the forms (e.g., redirection after submission).
No items found.

faqS

No items found.
Call-icon

Contact us

How can we help you?

Thank you!

We will get back to you in one business day.
If this is urgent, Please schedule a time
Oops! Something went wrong while submitting the form.
Linked-in
Contact-us