SharePoint Framework Custom Property Pane Fields

The SharePoint Framework has a few components that can be used as Property Pane Fields. The following components come out-of-the-box with the SP Framework as of version 1.3.4 – Button, Checkbox,Choice group, Dropdown, Horizontal rule, Label, Link, Slider, Textbox, Multi-line Textbox, Toggle, Custom.

In this article we’ll see how to create custom property pane fields in SharePoint Framework apps using JQuery UI.
Continue reading...

Filtering users with the pickSPUser widget in SharePoint Forms

Over the last few months I have been using a jQuery plugin by Paul Tavares called SPWidgets. In particular the pickSPUser and SPControlUpload components have both been quite useful in some SharePoint 2010 forms that I have been developing.

This widget works in a similar way to standard SharePoint people picker control, in that it can sometimes return unwanted suggestions. In my case, we had people from a couple of different domains showing up which weren’t applicable in the context of the form. The pickSPUser component provides a helpful option that enables you to specify a function to filter the results returned.
Continue reading...

Opening Office Templates (.dotx) from a SharePoint Document Library

So I ran across this problem while doing some work for a client where they had added a bunch of Word templates to a document library. The issue was that users would click on these documents and Word would open them fine but then to edit them it would prompt them to check the documents out. This created confusion since the users didn’t actually have any permissions to write to the source library.
Continue reading...

Creating a Drop-Down list of Sub-sites in SharePoint 2013 using JavaScript

I created a web part a little while back as a farm solution that would display a drop-down listing of sub-sites that could then be used for quickly navigating to these areas. More recently I decided to revisit the solution and use it as an excuse to brush up on my JavaScript. Be warned, this most definitely isn’t the best code ever and for me it was mostly just a learning exercise.
Continue reading...

SharePoint: Hiding Destination Library option when uploading assets

SharePoint 2013 provides users with the ability to upload photos directly from pages that they are editing. This is a nice piece of functionality that avoids the user from first having to upload these photos manually.

But what if you want to have finer control over this? From what I’ve found, there is no way to confine images to reside in one library while other file types default to another library. Sometimes this additional choice just confuses users and then you end up with images spread out unnecessarily across multiple libraries.

In this post I will run through a brief example of creating a sandbox solution that works around this issue using jQuery.
Continue reading...

Uploading Images Directly from a List Input Form in SharePoint 2010

Normally on lists and libraries to add a picture you would use a ‘Hyperlink or Picture’ column. That’s all fine and good if you know the URL for the image. Unfortunately though, this column provides no way to upload or select items already sitting in SharePoint. While searching around for a solution to this problem I found that there were a range of different ways people have achieved this including the creation of new field types and custom aspx upload pages.

I knew that this had to be complicating things, after all you see image upload/selection functionality elsewhere in SharePoint 2010 (Rich Text Editor!).
Continue reading...