Answers.Body: <p>From <a href="https://docs.civicrm.org/user/en/latest/organising-your-data/creating-custom-fields/#is-this-custom-field-set-public" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/latest/organising-your-data/creating-custom-fields/#is-this-custom-field-set-public</a></p>
  
  <blockquote>
    <p>Is this Custom Field Set public?
    If a custom field set is marked as public, its fields will be shown on public-facing pages.</p>
    
    <p>For example, custom fields that should be shown on an event information page should belong to a field set marked as public. Custom fields that relate to administrative information about an event should be part of a field set that is not be marked as public.</p>
    
    <p>Note that the setting is at the Custom Field Set level and applies to all Custom Fields in the Set. Individual fields cannot be marked as public or not.</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-21T01:55:29.050Z
Answers.Text: I Marked a field set as public and the field does not show up on front facing forms... Bug?
Answers.UserDisplayName: Yossi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-21T02:15:25.447Z
Answers.Text: what sort of entity? can you replicate on dmaster.demo.civicrm.org
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-21T02:18:19.027Z
Answers.Text: It's a contact field.
Answers.UserDisplayName: Yossi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-21T03:41:01.867Z
Answers.Text: can you replicate on dmaster.demo.civicrm.org?
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-21T06:54:11.383Z
Answers.Text: https://dmaster.demo.civicrm.org/civicrm/profile/create?gid=17&reset=1 both public and not public are visible. I'm assuming the permission is given to anonymous to access all custom data. Can't really test there because I cannot access permissions
Answers.UserDisplayName: Yossi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-21T09:44:59.320Z
Answers.Text: This does not relate to permissions - fields marked as not public should not show on public-facing pages regardless of permissions.  This is a fairly new feature and I recall seeing a note somewhere (but forget where) that this was not fully implemented.  It does work for custom fields on events as in the documentation but may not work fully elsewhere.  Looking at the implementation for events would give clues for extending this if you want a holiday project :-)
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-26T00:10:58.107Z
Answers.Text: @aiden, It has to do with permissions because I cannot show a custom field on a profile form unless I grant anonymous the "access all custom data" permission. Regardless of whether the field is flagged as public or not. In other words, My only choice is that either all custom fields are visible or none are
Answers.UserDisplayName: Yossi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-21T01:52:20.173Z
Answers.LastActivityDate: 2018-12-21T02:15:49.787Z
Answers.LastEditDate: 2018-12-21T02:15:49.787Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>The way to expose a custom field on a public profile form is by using ACL permissions.</p>
  
  <p>Administer>Users and Permissions> Permissions
  Select "Manage ACLs"
  Add ACL
  Role=Everyone
  Operation=Edit
  Type of Data=A set of custom data fields
  Save</p>
  
  <p>The public flag is doesn't do anything when it comes to displaying the custom fields on a public profile form.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-01T01:24:22.720Z
Answers.LastActivityDate: 2019-01-01T01:24:22.720Z
Answers.UserDisplayName: Yossi
Body: <p>What is the public flag for on custom Field sets?
  It seems that even if a field is marked as public, it will not show up for anonymous users on a profile unless I give anonymous users the "access all custom data" permission.
  What is the public flag for?</p>
  
Tags: <custom-fields>
Title: What is the public flag for on custom Field sets?
ThreadText: # What is the public flag for on custom Field sets?
  
  (Asked by: username_0 on 2018-12-21)
  
  What is the public flag for on custom Field sets?
  It seems that even if a field is marked as public, it will not show up for anonymous users on a profile unless I give anonymous users the "access all custom data" permission.
  What is the public flag for?
  
  **Tags:** custom-fields
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-12-21. Score: 1
  
  From <https://docs.civicrm.org/user/en/latest/organising-your-data/creating-custom-fields/#is-this-custom-field-set-public>
  
  > Is this Custom Field Set public?
  > If a custom field set is marked as public, its fields will be shown on public-facing pages.
  >
  > For example, custom fields that should be shown on an event information page should belong to a field set marked as public. Custom fields that relate to administrative information about an event should be part of a field set that is not be marked as public.
  >
  > Note that the setting is at the Custom Field Set level and applies to all Custom Fields in the Set. Individual fields cannot be marked as public or not.
  
  > **Comments:**
  > **username_0**: I Marked a field set as public and the field does not show up on front facing forms... Bug?  
  > **username_1**: what sort of entity? can you replicate on dmaster.demo.civicrm.org  
  > **username_0**: It's a contact field.  
  > **username_1**: can you replicate on dmaster.demo.civicrm.org?  
  > **username_0**: https://dmaster.demo.civicrm.org/civicrm/profile/create?gid=17&reset=1 both public and not public are visible. I'm assuming the permission is given to anonymous to access all custom data. Can't really test there because I cannot access permissions  
  > **username_2**: This does not relate to permissions - fields marked as not public should not show on public-facing pages regardless of permissions.  This is a fairly new feature and I recall seeing a note somewhere (but forget where) that this was not fully implemented.  It does work for custom fields on events as in the documentation but may not work fully elsewhere.  Looking at the implementation for events would give clues for extending this if you want a holiday project :-)  
  > **username_0**: @aiden, It has to do with permissions because I cannot show a custom field on a profile form unless I grant anonymous the "access all custom data" permission. Regardless of whether the field is flagged as public or not. In other words, My only choice is that either all custom fields are visible or none are  
  
  ---
  
  ### Answer by username_0 on 2019-01-01. Score: 1
  
  The way to expose a custom field on a public profile form is by using ACL permissions.
  
  Administer>Users and Permissions> Permissions
  Select "Manage ACLs"
  Add ACL
  Role=Everyone
  Operation=Edit
  Type of Data=A set of custom data fields
  Save
  
  The public flag is doesn't do anything when it comes to displaying the custom fields on a public profile form.
  
  
  ---
  
  