Search code examples
javascriptsharepointspservices

Spservices getlistitems managed metadata column


I have a regular custom list with all sorts of data but the one that's not working with the spservices getlistitems is the managed metadata field.

I am getting undefined when I tried to use ows_documentname .

Any suggestions are greatly appreciated


Solution

  • Please see the capture about the metadata field value format, it will like "ID;#Label": enter image description here

    Please split this like:

    $(this).attr("ows_metadata").split(";#")[1]