Keep Results Empty Until User Searches

Scenario: When you navigate to a custom search page, the Search Results web part is already populated even though you haven't searched for anything yet. You want the Search Results web part to remain empty until a user searches for something. Solution: Wrap the query template. {?{searchboxquery}} 1. Edit the page 2. Edit the Search … Continue reading Keep Results Empty Until User Searches

Custom XSL Web Part Error – Access Denied

Scenario: I created a custom XSL style sheet for a library web part that would intermittently throw an error for everyone except the admin account (me). Every morning users were complaining about an error on the web part. I would sign in and try to replicate, but it always worked for me. Then when I'd … Continue reading Custom XSL Web Part Error – Access Denied

Chart Web Part – SharePoint 2013

In SharePoint 2010, there was a Chart Web Part that you could connect to another web part on the same page, to a list anywhere in the site collection, to an external content type, or to data from an Excel workbook. In SharePoint 2013, this does not exist OOB. However, if you copy and paste this code … Continue reading Chart Web Part – SharePoint 2013

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

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

Drop-Down Menu Of Links

To add a drop-down menu populated by links to other parts of your site, add a Script Editor Web Part and embed the following code: Make sure you replace the URL with your site's URL, and change the option values to the names of your pages. The text between the option tag is the title of the page … Continue reading Drop-Down Menu Of Links