Answers.Body: <p>Access to custom fields is controlled by a separate permission.  You need to grant the <code>CiviCRM: access all custom data</code> permission to anonymous users.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-31T14:56:40.180Z
Answers.LastActivityDate: 2023-07-31T14:56:40.180Z
Answers.UserDisplayName: Aidan
Body: <p>I'm including a profile in the configuration of a contribution page to collect information about UK Gift Aid eligibility and the preferences of the donor to sign up to various newsletters.
  <a href="https://i.sstatic.net/aA4TA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aA4TA.png" alt="enter image description here" /></a></p>
  <p>The profile itself is shown in the screenshot below.
  <a href="https://i.sstatic.net/O03sZ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/O03sZ.png" alt="enter image description here" /></a></p>
  <p>The issue I'm encountering is that while the contribution page displays perfectly when viewed as a logged in user, certain fields are missing from the profile when viewed as an anonymous user.</p>
  <p>Good case (logged-in user):
  <a href="https://i.sstatic.net/BoIwY.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BoIwY.jpg" alt="enter image description here" /></a></p>
  <p>Bad case (anonymous user):
  <a href="https://i.sstatic.net/URiyO.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/URiyO.jpg" alt="enter image description here" /></a></p>
  <p>I presume this is a permissioning issue but can't think specifically what might be causing it. <strong>Any help would be hugely appreciated!</strong></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-29T13:33:51.880Z
Comments.Text: Is Anonymous missing the 'CiviCRM: access all custom data' permission?
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-29T16:28:17.927Z
Comments.Text: Yes, it was! Thank you so much. Really, really appreciate that help. If you post as a question, I'll accept your answer (in case you care about such things).
Comments.UserDisplayName: gillenpj
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-31T14:58:33.110Z
Comments.Text: Great.  I've posted as an answer as it is more discoverable for others than just being in a comment.  But points are nice too:-)
Comments.UserDisplayName: Aidan
Tags: <custom-fields><profile><contributions><permissions>
Title: Certain fields missing from profile when viewing contribution page as anonymous versus logged-in user
ThreadText: # Certain fields missing from profile when viewing contribution page as anonymous versus logged-in user
  
  (Asked by: username_0 on 2023-07-29)
  
  I'm including a profile in the configuration of a contribution page to collect information about UK Gift Aid eligibility and the preferences of the donor to sign up to various newsletters.
  [![enter image description here](https://i.sstatic.net/aA4TA.png)](https://i.sstatic.net/aA4TA.png)
  
  The profile itself is shown in the screenshot below.
  [![enter image description here](https://i.sstatic.net/O03sZ.png)](https://i.sstatic.net/O03sZ.png)
  
  The issue I'm encountering is that while the contribution page displays perfectly when viewed as a logged in user, certain fields are missing from the profile when viewed as an anonymous user.
  
  Good case (logged-in user):
  [![enter image description here](https://i.sstatic.net/BoIwY.jpg)](https://i.sstatic.net/BoIwY.jpg)
  
  Bad case (anonymous user):
  [![enter image description here](https://i.sstatic.net/URiyO.jpg)](https://i.sstatic.net/URiyO.jpg)
  
  I presume this is a permissioning issue but can't think specifically what might be causing it. **Any help would be hugely appreciated!**
  
  **Tags:** custom-fields, profile, contributions, permissions
  
  > **Comments:**
  > **username_1**: Is Anonymous missing the 'CiviCRM: access all custom data' permission?  
  > **username_0**: Yes, it was! Thank you so much. Really, really appreciate that help. If you post as a question, I'll accept your answer (in case you care about such things).  
  > **username_1**: Great.  I've posted as an answer as it is more discoverable for others than just being in a comment.  But points are nice too:-)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-07-31. Score: 3 | Accepted answer
  
  Access to custom fields is controlled by a separate permission. You need to grant the `CiviCRM: access all custom data` permission to anonymous users.
  
  
  ---
  
  