JSLink is one of the greatest improvements in SharePoint rendering in 2013 – love how easy it is to override the default views. Chris O’Brien has a great post on this (early in the 2013 release cycle but still valid!)
If you want to access values stored in a Managed Metadata field using JSLink be aware that the value of the field is stored as an array of JavaScript objects when you reference it from your JSLink file. Firebug to the rescue on this one!
For example, with a Term Set of Departments, where a Person can be in more than on Department (e.g. IT and Management), the JS Object will be as follows:
You will need to reference the array of objects to grab the values e.g. like the following fairly crude example:
Hope that helps!
Leave a Reply