Answers.Body: <p>In your custom Civi templates folder (probably default/civicrm/templates) place a copy of the following file from the civicrm module:
  /civicrm/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl</p>
  
  <p>Edit that file, look for the following line and remove the "collapsed" class:</p>
  
  <pre><code>&lt;div class="crm-accordion-wrapper crm-tagGroup-accordion collapsed"&gt;
  </code></pre>
  
  <p>No doubt it could also be done without the need of a custom version of this template file by using a couple of lines of jQuery, as long as they run after the initial page load scripts have run. I'll leave that option for a separate answer. Update: see @RayWright's answer, that's how to do it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-02T10:28:17.170Z
Answers.LastActivityDate: 2018-08-02T14:05:28.983Z
Answers.LastEditDate: 2018-08-02T14:05:28.983Z
Answers.UserDisplayName: oskylark
Answers.Body: <p>To add on to @oskylark answer I would use an extra template instead of a duplicate. Easier to manage when upgrading. <a href="https://civicrm.org/blog/dave-greenberg/now-its-easier-add-custom-behaviors-templates" rel="nofollow noreferrer">https://civicrm.org/blog/dave-greenberg/now-its-easier-add-custom-behaviors-templates</a></p>
  
  <p>In the extra template (TagsAndGroups.extra.tpl) and you could throw some javascript in a {literal} tag along the lines of</p>
  
  <pre><code>cj('.crm-tagGroup-accordion').collapse('toggle');
  </code></pre>
  
  <p>NOTE: I did not test this js line, just a first guess.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-03T00:55:05.853Z
Answers.Text: Yes, that would work, but I would need the exact code, not just a "first guess" ;) I'll wait and see if a pro provide the code...!Thanks Ray;)
Answers.UserDisplayName: Bruno  Vincent
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-03T01:00:26.417Z
Answers.Text: Maybe I should have said a 'first pass'. I'm not able to do the testing for you but I'd imagine the line is close. I can share links to references on jquery collapse is you need.
Answers.UserDisplayName: RayWright
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-03T01:04:35.067Z
Answers.Text: That would be great, I'm learning JS now, so would be a good exercise for me;)
Answers.UserDisplayName: Bruno  Vincent
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-03T01:39:02.550Z
Answers.Text: The civicrm blog link will have the details on using the {literal} tag in a template file - you need those to utilize javascript. (cj is what I'm accustomed to but I believe it is the older way of calling javascript in Civi, you may be able to use CRM.$ instead.) W3 schools usually has good references and examples - in this one: https://www.w3schools.com/bootstrap/bootstrap_ref_js_collapse.asp they explain collapse and toggle an give an example of target a div thru class.
Answers.UserDisplayName: RayWright
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-02T13:36:17.367Z
Answers.LastActivityDate: 2018-08-02T13:36:17.367Z
Answers.UserDisplayName: RayWright
Body: <p>Using Drupal 7 and CIVI CRM 5.x on windows 10 and Xampp</p>
  
  <p>I can set this up in custom fields sets, but how do I set the native "tags and groups" field to expanded on initial display? </p>
  
  <p><a href="https://i.sstatic.net/HvqZL.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/HvqZL.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-02T15:02:34.420Z
Comments.Text: wonder if in future https://civicrm.org/blog/colemanw/want-to-customize-the-contact-summary-screen may offer that option
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-03T00:52:46.770Z
Comments.Text: That's excellent, how can I get notified when it does?
Comments.UserDisplayName: Bruno  Vincent
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-03T02:03:53.130Z
Comments.Text: maybe write a comment on the blog?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-03T02:04:29.270Z
Comments.Text: or offer to fund coleman to add it - am sure he would then notify you when ready ;-)
Comments.UserDisplayName: petednz - fuzion
Tags: <fields>
Title: How set Tags And Groups field set to NOT "collapsed on display"
ThreadText: # How set Tags And Groups field set to NOT "collapsed on display"
  
  (Asked by: username_0 on 2018-08-02)
  
  Using Drupal 7 and CIVI CRM 5.x on windows 10 and Xampp
  
  I can set this up in custom fields sets, but how do I set the native "tags and groups" field to expanded on initial display?
  
  [![enter image description here](https://i.sstatic.net/HvqZL.png)](https://i.sstatic.net/HvqZL.png)
  
  **Tags:** fields
  
  > **Comments:**
  > **username_1**: wonder if in future https://civicrm.org/blog/colemanw/want-to-customize-the-contact-summary-screen may offer that option  
  > **username_0**: That's excellent, how can I get notified when it does?  
  > **username_1**: maybe write a comment on the blog?  
  > **username_1**: or offer to fund coleman to add it - am sure he would then notify you when ready ;-)  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2018-08-02. Score: 4 | Accepted answer
  
  To add on to @username_2 answer I would use an extra template instead of a duplicate. Easier to manage when upgrading. <https://civicrm.org/blog/dave-greenberg/now-its-easier-add-custom-behaviors-templates>
  
  In the extra template (TagsAndGroups.extra.tpl) and you could throw some javascript in a {literal} tag along the lines of
  
  ```
  cj('.crm-tagGroup-accordion').collapse('toggle');
  
  ```
  
  NOTE: I did not test this js line, just a first guess.
  
  > **Comments:**
  > **username_0**: Yes, that would work, but I would need the exact code, not just a "first guess" ;) I'll wait and see if a pro provide the code...!Thanks Ray;)  
  > **username_3**: Maybe I should have said a 'first pass'. I'm not able to do the testing for you but I'd imagine the line is close. I can share links to references on jquery collapse is you need.  
  > **username_0**: That would be great, I'm learning JS now, so would be a good exercise for me;)  
  > **username_3**: The civicrm blog link will have the details on using the {literal} tag in a template file - you need those to utilize javascript. (cj is what I'm accustomed to but I believe it is the older way of calling javascript in Civi, you may be able to use CRM.$ instead.) W3 schools usually has good references and examples - in this one: https://www.w3schools.com/bootstrap/bootstrap_ref_js_collapse.asp they explain collapse and toggle an give an example of target a div thru class.  
  
  ---
  
  ### Answer by username_2 on 2018-08-02. Score: 2
  
  In your custom Civi templates folder (probably default/civicrm/templates) place a copy of the following file from the civicrm module:
  /civicrm/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl
  
  Edit that file, look for the following line and remove the "collapsed" class:
  
  ```
  <div class="crm-accordion-wrapper crm-tagGroup-accordion collapsed">
  
  ```
  
  No doubt it could also be done without the need of a custom version of this template file by using a couple of lines of jQuery, as long as they run after the initial page load scripts have run. I'll leave that option for a separate answer. Update: see @username_3's answer, that's how to do it.
  
  
  ---
  
  