Quantcast
Channel: SharePoint JavaScripts » SharePoint 2013
Viewing all articles
Browse latest Browse all 35

spjs-utility.js v1.17

$
0
0
Change log
August 21. 2013
I had a mixup in the files and uploaded v1.17 in stead of v1.171. You will have to download v1.171 again. Sorry for the inconvenience.

August 20. 2013
In v1.171 i have fixed a typo preventing you from getting the loginName when using it to get the value from a people picker field in SP2013. I have also changed how getFieldValue handles people pickers in SP2013 by using the built in methods to get the field value.

When using getFieldValue to get a people picker value on page load, you must wrap the call like this:

ExecuteOrDelayUntilScriptLoaded(function(){
	var myPeoplePickerValue = getFieldValue("MyPeoplePickersFieldInternalName","","; ","loginName");
	alert(myPeoplePickerValue);
},'sp.ribbon.js');

I have updated spjs-utility.js to v1.17 with these changes:

  • Fixed compatibility issue in SP2013 with RTE fields and people picker fields.
  • Added support for getting and setting “Managed metadata fields” or “SPFieldTaxonomyFieldType” and “SPFieldTaxonomyFieldTypeMulti”.

This file is used in multiple solutions – like this one.

Alexander


Viewing all articles
Browse latest Browse all 35

Trending Articles