title: Sharepoint: Hide fields from publishing page
body: <p>I have a page layout that intherits from <code>PublishingLayoutPage</code>. In it there is specified a number of fields - the content can be seen here: <a href="http://pastebin.com/L4fmc3qb" rel="nofollow">http://pastebin.com/L4fmc3qb</a>.</p>
  
  <p>However, two of the fields (<code>SendSMS</code> and <code>SendEmail</code>) I only want shown on the edit form on the page, not when it is viewed as a page. How do I hide these fields on the shown page?</p>
  
  <p>Alternatively, is there any way to "inject" these two fields into the page and catch them with an item event? Currently, these fields have been added to the content type that the page makes use of and I use an item event receiver to see if they have been checked, but if there is an alternate way to do this that's fine as well.</p>