Problem: I added a Calendar View (week) for a list on a Site Page. When I click an event, it takes me to another page instead of opening a dialog box. Solution: Paste that into a Script Editor web part or save it as calendar.js and then call it from a Content Editor web part.
Lists and Libraries
Hiding Calculated Columns from Display Form
By default, the option to hide a calculated column for a content type is grayed out. Some people are able to use SharePoint Designer to hide these columns, but we kept running into an error when saving our changes. "This column already exists in the list. Choose a different column." The workaround, as always, was … Continue reading Hiding Calculated Columns from Display Form
Workflow to Update Hyperlink Display Text
Problem: I wanted to use Quick Edit to update the URL column for a bunch of items in a list. The problem is that when you edit a hyperlink column, you have to click the little hyperlink editor icon next to the cell to also edit the display text. Otherwise, it just shows up as … Continue reading Workflow to Update Hyperlink Display Text
Link To New Item Form
Give users the ability to add items to a list without showing the entire list web part. In my example, I've added a "Submit Request" button to a Document Set Welcome Page. Clicking this will open the New Item form for my Tickets list. Steps: 1. Add a Script Editor web part to your page. 2. … Continue reading Link To New Item Form
Edit Form Popup – Drag And Drop
By default, the edit form does not pop up when you drag and drop documents into a library. This piece of JavaScript will force an edit form to pop up for as many documents you drag and drop. For example, if you drag 5 documents at the same time, 5 individual edit forms will pop … Continue reading Edit Form Popup – Drag And Drop
Mass Delete Empty Folders With PowerShell
If you don't feel like manually deleting empty folders, use this PowerShell script to query and delete all empty folders and subfolders. Make sure you change the $WebURL to your SharePoint site or subsite, and the $listName to your library.
Library Paging – First Page Button
Adding a "First Page" button is a simple work around for getting back to the first page when paging through documents. This is especially handy if you use document sets. Edit the page and add a Script Editor web part. Click EDIT SNIPPET. Embed the following code: I moved the Script Editor web part down below the … Continue reading Library Paging – First Page Button
Custom Quick Edit Button
To add a custom Quick Edit button to a page or view, add a Script Editor Web Part and embed the following code. Make sure you change the number in [WPQ2SchemaData] to the ID of the Web Part you want to Quick Edit. You can find that by inspecting the list or library Web Part using … Continue reading Custom Quick Edit Button
Internal Column Names
Document Library Fields: Display Name Internal Name GUID Type ID ID {1d22ea11-1e32-424e-89ab-9fedbadb6ce1} Counter Content Type ID ContentTypeId {03e45e84-1992-4d42-9116-26f756012634} ContentTypeId Content Type ContentType {c042a256-787d-4a6f-8a8a-cf6ab767f12d} Text Created Created {8c06beca-0777-48f7-91c7-6da68bc07b69} DateTime Created By Author {1df5e554-ec7e-46a6-901d-d85a3881cb18} User Modified Modified {28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f} DateTime Modified By Editor {d31655d1-1d5b-4511-95a1-7a09e9b75bf2} User Has Copy Destinations _HasCopyDestinations {26d0756c-986a-48a7-af35-bf18ab85ff4a} Boolean Copy Source _CopySource {6b4e226d-3d88-4a36-808d-a129bf52bccf} Text Approval Status … Continue reading Internal Column Names
Update List/Library Columns With External Content Type Columns
Scenario: You have a column on a custom list or library that needs to be back-filled with data from an External Content Type (ECT). Solution: Create a list from the ECT and use PowerShell to update your custom list's column with the ECT's list column. Creating a list (assuming you already connected an ECT): Open SharePoint Designer 2013 … Continue reading Update List/Library Columns With External Content Type Columns