mardi 9 décembre 2014

Hide the fieldproperty if the related textfield contains no content



I have a SharePoint 2013 page layout which contains some info in the footer area like so.


enter image description here


As you can see i have no content in the Regions yet the label is still appearing i would like to this to NOT display if there is not content.


I am using the following code in my page layout.



<div class="tags">
<strong><SharePointWebControls:FieldProperty FieldName="Regions" PropertyName="Title" runat="server" /> </strong>
<Taxonomy:TaxonomyFieldControl FieldName="Regions" runat="server"></Taxonomy:TaxonomyFieldControl>
</div>







0 commentaires:

Enregistrer un commentaire