Body: <p>I have a custom field set that is tied to Contributions. Most of the custom fields have default values. On my standard Contribution pages, I include the custom fields in a profile, and then I use JavaScript to hide the fields that I don't want the user to change. (Probably I could just set the Visibility of the field to No in the profile, but I've not experimented with that. But that's not the question for this post.)</p>
  <p>My question is this: I have a paid Event with an Online Registration form. How do I include my Contribution custom fields in the profile for the Event Registration? The only fields that I can choose from are fields for Individuals and Participants, not Contributions.</p>
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-09-13T23:14:07.867Z
Comments.Text: Good question. not sure what sort of Answers might show up. only workaround i could suggest is to see if CiviRules could be used to set those values for you.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-09-16T19:52:28.377Z
Comments.Text: Out of curiosity, what data (generally speaking) are you collecting with these fields?  Depending on the circumstances and the data, we've addressed this with a couple of clients by duplicating the fields for participant records, but whether that's appropriate depends on how you need to report on the data in question.
Comments.UserDisplayName: Lesley Carter - BackOffice
Tags: <civievent><civicontribute><custom-fields><profile>
Title: Setting contribution custom fields during online event registration
ThreadText: # Setting contribution custom fields during online event registration
  
  (Asked by: username_0 on 2024-09-13)
  
  I have a custom field set that is tied to Contributions. Most of the custom fields have default values. On my standard Contribution pages, I include the custom fields in a profile, and then I use JavaScript to hide the fields that I don't want the user to change. (Probably I could just set the Visibility of the field to No in the profile, but I've not experimented with that. But that's not the question for this post.)
  
  My question is this: I have a paid Event with an Online Registration form. How do I include my Contribution custom fields in the profile for the Event Registration? The only fields that I can choose from are fields for Individuals and Participants, not Contributions.
  
  Thanks!
  
  **Tags:** civievent, civicontribute, custom-fields, profile
  
  > **Comments:**
  > **username_1**: Good question. not sure what sort of Answers might show up. only workaround i could suggest is to see if CiviRules could be used to set those values for you.  
  > **username_2**: Out of curiosity, what data (generally speaking) are you collecting with these fields?  Depending on the circumstances and the data, we've addressed this with a couple of clients by duplicating the fields for participant records, but whether that's appropriate depends on how you need to report on the data in question.  
  
  ---
  
  ## 0 answers
  
  