Browsed by
Tag: SharePoint 2013

Show modal dialog form from another site collection

Show modal dialog form from another site collection

Ever get an error message saying “Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN‘.” when trying to load a list form from another site collection in a modal dialog? ¬†Add this to a line right after the last <% Register tag on the masterpage: <WebPartPages:AllowFraming runat=”server” />

Populate a SharePoint 2013 PeoplePicker field using JavaScript/jQuery

Populate a SharePoint 2013 PeoplePicker field using JavaScript/jQuery

Here is a quick and fairly simple way to programmatically populate a SharePoint 2013 People Picker field with a user based on their email address. This example assumes you have more than one People Picker field on the page. You will need: The display name of the People Picker Field The email address of the user you want to add to the People Picker Field Add the following code to either a Script Editor Web Part (inside <script> tags) or…

Read More Read More

Complete Guide to Making and Parsing REST calls using SharePoint Designer 2013

Complete Guide to Making and Parsing REST calls using SharePoint Designer 2013

Recently I needed a sequential workflow that makes a REST call to another website (non-SharePoint), retrieves some JSON data, parses it, and makes decisions based on that data. Oh, and I’m not allowed to use Visual Studio in this case, it has to be SharePoint Designer (ugh).

Read a SharePoint list using JavaScript

Read a SharePoint list using JavaScript

There are countless ways to read data from a SharePoint list, and also myriad methods to do this in JavaScript, but I’m going to document this one way as a place to get started, and a published function I can refer back to if needed! First consider the following: Reading SharePoint list data using JavaScript requires the SP.js file to be loaded already. So, we should be putting this function inside of a $(document).ready(function())}; and if needed inside an ExecuteOrDelayUntilScriptLoaded(functionName,…

Read More Read More

%d bloggers like this: