Answers.Body: <p>Thanks for the replies. That &quot;custom data&quot; permission wasn't set (but it did work sometimes without that being tagged, for non-logged-in users, so I'm not sure if that itself was the problem?) But I've ticked that now, and I've refreshed the caches, and that made it work for administrators and anonymous users. I'll keep an eye on it to see if it continues to work.
  Thanks!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-13T21:33:13.377Z
Answers.LastActivityDate: 2023-08-13T21:33:13.377Z
Answers.UserDisplayName: Cozy4907
Body: <p>I'm having an intermitent issue with custom fields on a profile. Sometimes they are displaying fully and correctly, sometimes not (though name and email continues to be visible).
  It seems if I go into the profile and change a setting (any setting for any field) it then starts to display properly again on the public profile.
  Does anyone know why this is happening? We are on Drupal, on CiviCRM 5.58.1.</p>
  <p>TIA</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-11T15:47:50.913Z
Comments.Text: Are there any errors logged?
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-11T16:45:23.813Z
Comments.Text: Also, does this happen in every context (previewing the profile, using the profile in create mode, using the profile in a contribution or even page)?
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-11T19:39:14.193Z
Comments.Text: are you testing with different users? does Anonymous have the permission for 'access all custom fields' (or similarly named permission)
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-11T21:09:36.743Z
Comments.Text: I think this may be https://lab.civicrm.org/dev/core/-/issues/2920.  Take a look at the replication steps there.  Do you have a role without the "CiviCRM: access all custom data" permission?  Try clearing cache and visit the profile immediately with an admin. Then clear cache and visit immediately with a user without "access all custom data".  If that controls whether the fields show up, it's the same issue.
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <custom-fields><profile>
Title: Custom fields not always displaying on profile
ThreadText: # Custom fields not always displaying on profile
  
  (Asked by: username_0 on 2023-08-11)
  
  I'm having an intermitent issue with custom fields on a profile. Sometimes they are displaying fully and correctly, sometimes not (though name and email continues to be visible).
  It seems if I go into the profile and change a setting (any setting for any field) it then starts to display properly again on the public profile.
  Does anyone know why this is happening? We are on Drupal, on CiviCRM 5.58.1.
  
  TIA
  
  **Tags:** custom-fields, profile
  
  > **Comments:**
  > **username_1**: Are there any errors logged?  
  > **username_1**: Also, does this happen in every context (previewing the profile, using the profile in create mode, using the profile in a contribution or even page)?  
  > **username_2**: are you testing with different users? does Anonymous have the permission for 'access all custom fields' (or similarly named permission)  
  > **username_3**: I think this may be https://lab.civicrm.org/dev/core/-/issues/2920.  Take a look at the replication steps there.  Do you have a role without the "CiviCRM: access all custom data" permission?  Try clearing cache and visit the profile immediately with an admin. Then clear cache and visit immediately with a user without "access all custom data".  If that controls whether the fields show up, it's the same issue.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-08-13. Score: 2
  
  Thanks for the replies. That "custom data" permission wasn't set (but it did work sometimes without that being tagged, for non-logged-in users, so I'm not sure if that itself was the problem?) But I've ticked that now, and I've refreshed the caches, and that made it work for administrators and anonymous users. I'll keep an eye on it to see if it continues to work.
  Thanks!
  
  
  ---
  
  