Browsed by
Year: 2016

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