Body: <p>I want to add a button into the activity edit tab. Please refer an image.<br><br>
  <a href="https://i.sstatic.net/YJbZE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YJbZE.png" alt="enter image description here"></a></p>
  
  <p><br>
  Please provide a sample snippet (Code) for custom template </p>
  
  <blockquote>
    <p>My Snippet</p>
  </blockquote>
  
  <pre><code>CRM
      .$(function($) {
          console.log('Form edit ok');
          $('.action-item.crm-hover-button').click(function(){
              console.log("adding of button ok ");
          });
  
          $('.ui-dialog-buttonset').append('&lt;button id="popup" name="popup"&gt;Click Here&lt;/button&gt;');
  
  
          $("#takefeedback").click(function() {
              CRM.loadForm(CRM.url('civicrm/mypage'));
          });
      });
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-07T08:42:21.417Z
Comments.Text: Please paste what you've already tried. This site is not for asking code snippets. You can check buildform hook https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/ to add buttons on the form.
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-07T09:27:10.030Z
Comments.Text: Please refer a modified question
Comments.UserDisplayName: deepak
Tags: <extension><custom-templates>
Title: How to custom a predefined template file?
ThreadText: # How to custom a predefined template file?
  
  (Asked by: username_0 on 2019-02-07)
  
  I want to add a button into the activity edit tab. Please refer an image.  
    
  [![enter image description here](https://i.sstatic.net/YJbZE.png)](https://i.sstatic.net/YJbZE.png)
  
  Please provide a sample snippet (Code) for custom template
  
  > My Snippet
  
  ```
  CRM
      .$(function($) {
          console.log('Form edit ok');
          $('.action-item.crm-hover-button').click(function(){
              console.log("adding of button ok ");
          });
  
          $('.ui-dialog-buttonset').append('<button id="popup" name="popup">Click Here</button>');
  
          $("#takefeedback").click(function() {
              CRM.loadForm(CRM.url('civicrm/mypage'));
          });
      });
  
  ```
  
  **Tags:** extension, custom-templates
  
  > **Comments:**
  > **username_1**: Please paste what you've already tried. This site is not for asking code snippets. You can check buildform hook https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/ to add buttons on the form.  
  > **username_0**: Please refer a modified question  
  
  ---
  
  ## 0 answers
  
  