Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Hiding the Target Audience field in New Forms

$
0
0

I am trying to hide the Target Audience field in the New Item form in a list using something similar to that found below;

SPField audienceField = newsItems.Fields[new Guid("61cbb965-1e04-4273-b658-eedaa662f48d")];
audienceField.ShowInNewForm = false;

 

This method works perfectly for any other field but not the Target Audience field. Has anyone experienced this issue or found a workaround?

Cheers

Josh

 

 


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>