Answers.Body: <p>Any reason why you cannot use a custom set that extends groups? This allows you to add various fields to civicrm_group which appear in the add/edit screen of all groups</p>
  
  <p>You can select "Groups" in the "Used For" selection here:</p>
  
  <p><a href="http://d46.demo.civicrm.org/civicrm/admin/custom/group?action=add&amp;reset=1" rel="nofollow">http://d46.demo.civicrm.org/civicrm/admin/custom/group?action=add&amp;reset=1</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-21T20:39:25.520Z
Answers.Text: looks like there is no reason not to use it :) I'm too new to know all functionality
Answers.UserDisplayName: Mantas
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-21T04:04:55.140Z
Answers.LastActivityDate: 2015-05-21T04:04:55.140Z
Answers.UserDisplayName: Donald Lobo
Body: <p>I have a requirement to extend change add/edit screen of static group and add some extra fields there, like default email subject. </p>
  
  <p>For saving extra fields I'm thinking about adding a new table, linked to groups table. </p>
  
  <p>Then to display those fields I will need to create my own version of CRM_Group_Form_Edit. </p>
  
  <p>Now I'm thinking what is better way to do all this, 2 options:</p>
  
  <ul>
  <li>put required classes and templates in custom folder and change them. Looks like this is standard way.</li>
  <li>instead of editing CRM_Group_Form_Edit I could create my own class then
  change CRM_Group_StateMachine to point to that class which would extend
  CRM_Group_Form_Edit</li>
  </ul>
  
  <p>2nd option kind of sounds a better way thinking about feature upgrades.</p>
  
  <p>are there same case scenarios when to use what? or any other suggestions for this requirement?</p>
  
Tags: <extension><groups>
Title: Best way to extend group functionality
ThreadText: # Best way to extend group functionality
  
  (Asked by: username_0 on 2015-05-20)
  
  I have a requirement to extend change add/edit screen of static group and add some extra fields there, like default email subject.
  
  For saving extra fields I'm thinking about adding a new table, linked to groups table.
  
  Then to display those fields I will need to create my own version of CRM\_Group\_Form\_Edit.
  
  Now I'm thinking what is better way to do all this, 2 options:
  
  * put required classes and templates in custom folder and change them. Looks like this is standard way.
  * instead of editing CRM\_Group\_Form\_Edit I could create my own class then
    change CRM\_Group\_StateMachine to point to that class which would extend
    CRM\_Group\_Form\_Edit
  
  2nd option kind of sounds a better way thinking about feature upgrades.
  
  are there same case scenarios when to use what? or any other suggestions for this requirement?
  
  **Tags:** extension, groups
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-05-21. Score: 1 | Accepted answer
  
  Any reason why you cannot use a custom set that extends groups? This allows you to add various fields to civicrm\_group which appear in the add/edit screen of all groups
  
  You can select "Groups" in the "Used For" selection here:
  
  <http://d46.demo.civicrm.org/civicrm/admin/custom/group?action=add&reset=1>
  
  > **Comments:**
  > **username_0**: looks like there is no reason not to use it :) I'm too new to know all functionality  
  
  ---
  
  