Category: jquery / javascript

Set the width of multiple lookup fields in SharePoint via jQuery

Get the value of a SharePoint People Picker field via javascript

The ever handsome and cunning Marc D. Anderson (I felt like giving the man credit, since I use so many of his solutions!!) saved my behind once again with a fantastic javascript!
This time I was looking to find a solution to get the value from a people picker field via jquery.


add a PreSaveAction on the SharePoint "input type=button"

My previous blogpost was about how you could replace the SharePoint:SaveButton with a input type=Button in order to add a redirect after you have filled in the form. Today I wanted to add the PreSaveAction() functionality and it didn’t work. After some research and testing I found out that the input type=Button does not have …


How to check for attachments or limit the number of attachments in SharePoint via jQuery

A client had a business requirement that if someone added an attachment to an item in a list, a metadata field had to be filled in. So I put on my jQuery glasses (they are quite special, looking a bit like Dame Edna’s) I ended up with following code which uses the PreSaveAction, a default …


jQuery Cycle plugin for an easy to code picture slider

why bother with costly external picture sliders or Silverlight scripts that have to be developed and deployed when you can simply use jQuery Cycle plugin?


Get the field value from dispform.aspx in SharePoint 2010 – 2013 via jQuery

I was trying to find a quick way to get the field value from dispform.aspx in SharePoint. Apparently, the internet is filled with .. let us say “less-interesting methods” to get that value


Let users only write numerical values in SharePoint via jQuery script

When you add a numeric field in SharePoint, it is still possible to type in alphanumeric values. Only when you press the “ok” or “save” button, the value is checked.


SharePoint loses attachment when trying to save without filling in mandatory fields

If you save a SharePoint item with an attachment while a mandatory field is blank, the page will error. But the attachments are gone! Here is a solution!


2 ways for Multiple filters on a (external) list without typing the whole thing – SharePoint 2007 / 2010

I am building a solution for a client where they can pick an item in an external list and they get to see a page with the rest of the data. The selection table, where you can pick the item, has 5 fields. All fields have to be able to be filtered in order to …


Update content type or metadata for multiple items in a list/library in SharePoint 2010 / 2007

I blogged about the awesome SPServices library before. This time, I needed another functionality of this jquery lib: SPUpdateMultipleListItems. What this does is let you make a query to select one or more items in a list and give you the power to update some fields (or delete items). That is just great. Imagine you …