Skip to content

Instantly share code, notes, and snippets.

@vgrem
Created January 22, 2013 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgrem/4599119 to your computer and use it in GitHub Desktop.
Save vgrem/4599119 to your computer and use it in GitHub Desktop.
Get Taxonomy ControlObject value
//Get Taxonomy ControlObject value
//webTaggingId - TaxonomyWebTaggingControl ID
function getTaxonomyControlObjectValue(webTaggingId) {
var webTaggingCtl = $get(webTaggingId);
var taxCtlObj = new Microsoft.SharePoint.Taxonomy.ControlObject(webTaggingCtl);
var termValue = taxCtlObj.getRawText();
return termValue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment