Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is it possible to hide some publishing fields on page layouts based on page content type field values? For example, if some field named Show Main Image is not set to true, I don't want to show Main Image field on the page.

share|improve this question

2 Answers 2

No using the OOTB field controls.

Hiding the main image is usually done by having a seperate pagelayout without that field and what might be needed around it.

share|improve this answer

I usually solve requirements like this using javascript/jQuery on the page layout. It should be pretty straight forward to add an onclick/toggle function when the user sets a field to true. Using javascript CSOM, you could also do other things to show/hide fields depending on conditions. I've previously toggled fields based on

  • profile properties of the user
  • user group membership
  • values of fields in list items
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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