Normally you access a field using jslink in the following manner:


but how can I access Audiences field for a given item? This does not seem to work:

ctx.CurrentItem["Target Audiences"]

How can I loop through the target audiencies field and display its values using jslink?

  • I think audiences are not supported in the SharePoint client object model. Its only supported in the Server Object Model.
    – Amit Kotha
    Sep 25, 2015 at 13:08
  • how can I use target audiences in content query web part? Sep 25, 2015 at 13:27

1 Answer 1


You can access Target Audiencies like:

var groupNames; 
groupNames = oListItem.get_item('Target_x0020_Audiences').split(',');

then you can loop groupNames with comma(,) separated.

  • how can I apply this to ctx.CurrentItem? Sep 25, 2015 at 13:59
  • Use ctx.CurrentItem["Target_x0020_Audiences"] Nov 18, 2015 at 8:33
  • you cannot access them using ctx.CurrentItem["Target_x0020_Audiences"]. I have tried that before, but does not work. Nov 19, 2015 at 10:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.