Answers.Body: <p>Graham, there are loads of tutorials on how to use jQuery. The CiviCRM approach would be:</p>
  
  <ol>
  <li>Identify the ID of the field to hide using FireBug (or the inspect element function of your browser)</li>
  <li>Add a template with the jQuery required to hide the identified id's which will be something like this:</li>
  </ol>
  
  <pre><code>{literal}
    
      cj(document).ready(function() {
        cj('#firstTestID').hide();
        cj('#secondTestID').hide();
      });
    
  {/literal}</code></pre>
  
  <ol start="3">
  <li>Add a hook in an extension to add the template with your hides to the template with something like this statement:
  <pre><code>        CRM_Core_Region::instance('page-body')->add(array('template' => 'GroupProtect.tpl'));</code></pre> OR add the jQuerys to a .extra template (in the documentation <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Page+Templates" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/Page+Templates</a>)</li>
  </ol>
  
  <p>Does this help?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-03T14:34:25.660Z
Answers.Text: Thanks Erik. I guess my goal here is in part to provide a useful resource and a set of pointers. Your input is invaluable, as always.
Answers.UserDisplayName: Graham
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-03T14:29:36.797Z
Answers.LastActivityDate: 2016-02-03T14:29:36.797Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I find that in many case some of the default fields on activities are not relevant. what's the best approach to editing the templates so that I can control what fields appear on activity forms?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-03T14:10:26.127Z
Comments.Text: I can see here - http://civicrm.stackexchange.com/questions/7101/remove-default-standard-fields-from-activities/ - that using jQuery or CSS to hide fields is one approach. in the interests of helping users, does anyone know of any tutorial or guidance on how to do this that we can point to?
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-03T14:22:17.520Z
Comments.Text: Here's one: https://wiki.civicrm.org/confluence/display/CRMDOC/Page+Templates includes a section on how to approach using jQuery to alter a form.
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-03T14:23:16.087Z
Comments.Text: And here's some useful guidance from Hershel: https://civicrm.org/blogs/hershel/how-customize-civicrm-pages-jquery
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-03T14:25:37.717Z
Comments.Text: And this from Jackrabbithanna: http://www.jackrabbithanna.com/articles/easy-jquery-modificaiton-civicrm-forms
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-03T14:32:15.180Z
Comments.Text: And there's some useful information in Tony Horrocks' CiviCRM Cookbook, available from all good bookshops.
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-03T14:36:04.403Z
Comments.Text: Here's another really helpful guide: https://mcaleaa.wordpress.com/2011/08/10/civicrm-using-jquery-to-showhide-fields/
Comments.UserDisplayName: Graham
Tags: <activities>
Title: How do I edit activity forms?
ThreadText: # How do I edit activity forms?
  
  (Asked by: username_0 on 2016-02-03)
  
  I find that in many case some of the default fields on activities are not relevant. what's the best approach to editing the templates so that I can control what fields appear on activity forms?
  
  **Tags:** activities
  
  > **Comments:**
  > **username_0**: I can see here - http://civicrm.stackexchange.com/questions/7101/remove-default-standard-fields-from-activities/ - that using jQuery or CSS to hide fields is one approach. in the interests of helping users, does anyone know of any tutorial or guidance on how to do this that we can point to?  
  > **username_0**: Here's one: https://wiki.civicrm.org/confluence/display/CRMDOC/Page+Templates includes a section on how to approach using jQuery to alter a form.  
  > **username_0**: And here's some useful guidance from Hershel: https://civicrm.org/blogs/hershel/how-customize-civicrm-pages-jquery  
  > **username_0**: And this from Jackrabbithanna: http://www.jackrabbithanna.com/articles/easy-jquery-modificaiton-civicrm-forms  
  > **username_0**: And there's some useful information in Tony Horrocks' CiviCRM Cookbook, available from all good bookshops.  
  > **username_0**: Here's another really helpful guide: https://mcaleaa.wordpress.com/2011/08/10/civicrm-using-jquery-to-showhide-fields/  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-02-03. Score: 2 | Accepted answer
  
  username_0, there are loads of tutorials on how to use jQuery. The CiviCRM approach would be:
  
  1. Identify the ID of the field to hide using FireBug (or the inspect element function of your browser)
  2. Add a template with the jQuery required to hide the identified id's which will be something like this:
  
  ```
  {literal}
    
      cj(document).ready(function() {
        cj('#firstTestID').hide();
        cj('#secondTestID').hide();
      });
    
  {/literal}
  ```
  
  3. Add a hook in an extension to add the template with your hides to the template with something like this statement:
  
     ```
             CRM_Core_Region::instance('page-body')->add(array('template' => 'GroupProtect.tpl'));
     ```
  
     OR add the jQuerys to a .extra template (in the documentation <https://wiki.civicrm.org/confluence/display/CRMDOC/Page+Templates>)
  
  Does this help?
  
  > **Comments:**
  > **username_0**: Thanks Erik. I guess my goal here is in part to provide a useful resource and a set of pointers. Your input is invaluable, as always.  
  
  ---
  
  