Answers.Body: <p>Thanks Peter for the feedback, I'm coming to the conclusion that the inability to require a tag is simply an overlooked feature. I will try to put together a PR in the coming days to address it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-31T19:55:49.350Z
Answers.Text: I've submitted a fix upstream: https://github.com/civicrm/civicrm-core/pull/23645
Answers.UserDisplayName: Jamie
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-25T18:31:55.837Z
Answers.LastActivityDate: 2022-05-25T18:31:55.837Z
Answers.UserDisplayName: Jamie
Body: <p>It is possible via the profile user interface to mark the tags field as required.</p>
  <p>But, when the profile is displayed in user-create mode, the little red asterisk is absent and you can in fact add a record without entering a tag.</p>
  <p>I've traced the problem to <a href="https://github.com/civicrm/civicrm-core/blob/48335576c076f2e321d622b2a81a217c64d1e229/CRM/Contact/Form/Edit/TagsAndGroups.php#L49" rel="nofollow noreferrer">this function call</a>, which allows you to make the group field required (provided it's displayed as check boxes). But there doesn't appear to be any code that would apply to tags.</p>
  <p>This doesn't look like a programming error. So, I'm not sure if it simply was left out or if there is any underlying reason why you would not be able to do this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-23T20:31:36.310Z
Comments.Text: Concur this problem existed (just tested on a dmaster d9 site) but have no explanation, sorry.
Comments.UserDisplayName: petednz - fuzion
Tags: <profile><tags>
Title: Why can't you make the selection of at least one tag required in a profile?
ThreadText: # Why can't you make the selection of at least one tag required in a profile?
  
  (Asked by: username_0 on 2022-05-23)
  
  It is possible via the profile user interface to mark the tags field as required.
  
  But, when the profile is displayed in user-create mode, the little red asterisk is absent and you can in fact add a record without entering a tag.
  
  I've traced the problem to [this function call](https://github.com/civicrm/civicrm-core/blob/48335576c076f2e321d622b2a81a217c64d1e229/CRM/Contact/Form/Edit/TagsAndGroups.php#L49), which allows you to make the group field required (provided it's displayed as check boxes). But there doesn't appear to be any code that would apply to tags.
  
  This doesn't look like a programming error. So, I'm not sure if it simply was left out or if there is any underlying reason why you would not be able to do this?
  
  **Tags:** profile, tags
  
  > **Comments:**
  > **username_1**: Concur this problem existed (just tested on a dmaster d9 site) but have no explanation, sorry.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-05-25. Score: 0
  
  Thanks Peter for the feedback, I'm coming to the conclusion that the inability to require a tag is simply an overlooked feature. I will try to put together a PR in the coming days to address it.
  
  > **Comments:**
  > **username_0**: I've submitted a fix upstream: https://github.com/civicrm/civicrm-core/pull/23645  
  
  ---
  
  