CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Custom Fields show in View Contribution but not in New Contribution
Pages: [1]

Author Topic: Custom Fields show in View Contribution but not in New Contribution  (Read 1069 times)

timatidg

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5.36-cll
  • PHP version: 5.3.27
Custom Fields show in View Contribution but not in New Contribution
April 07, 2015, 05:32:41 pm
I have a section of custom fields for Donors. These show in basic Contact pages and I can use them in a profile. They also show when I view a previously entered contribution.

However, the New Contribution (built in form) does not show these fields for new entries even though both the View and the New pages appear to use the same template: /Contribute/Page/Tab.tpl

<!-- .tpl file invoked: CRM/Contribute/Page/Tab.tpl. Call via form.tpl if we have a form in the page. -->
    <form  action="/civicrm/contribute/add" method="post" name="Contribution" id="Contribution" enctype="multipart/form-data" >

<!-- .tpl file invoked: CRM/Contribute/Page/Tab.tpl. Call via form.tpl if we have a form in the page. -->
    <form  action="/civicrm/contact/view/contribution" method="post" name="ContributionView" id="ContributionView" >

I did notice the demo site has custom fields, but I don;t know how they did it.

What am I missing? If I want to add these field, how do I do so. I can't figure out how from this http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in%2C+Profile%2C+Contribution+and+Event+Registration+Screens help page.

Also, since the fields were missing, the person entering new contributions was using the "notes" field. I can not find a way to do an export of that field so I can import it back into the correct custom field! (I can't find it in the database at all, but it's clearly there.)

Screen captures of the View and New screens are attached to show these issues.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Custom Fields show in View Contribution but not in New Contribution
April 07, 2015, 05:39:12 pm
You must include these fields in a profile and stick that profile on your contribution form.
Try asking your question on the new CiviCRM help site.

timatidg

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5.36-cll
  • PHP version: 5.3.27
Re: Custom Fields show in View Contribution but not in New Contribution
April 08, 2015, 08:59:04 am
Does this mean we have to use something other than the standard form in the CiviCRM menu under "Contributions | New Contributions" ? We did create a profile and have used it in a public version of the form ( http://evanstonsymphony.org/civicrm/contribute/transact?reset=1&id=2 ). I need to have the custom fields in a form oriented for internal use to enter checks received in the mail, for example, and the handle multiple contributions in a row. (Client does not like to use the batch feature.)

So having the "Save and New" button is the critical thing for them, plus not defaulting to the signed in user as the donor.

On the demo site this menu item DOES have custom donor fields showing
http://d45.demo.civicrm.org/civicrm/contribute/add?reset=1&action=add&context=standalone
   How long have you been a donor?    Less than 1 year 1-3 years 4-6 years 7-9 years More than 9 years 
    Known areas of interest

I do NOT see these fields in a Profile on the demo site, so that's not how they got there, right?


Also--any help on finding the NOTES field data so I can export and reimport to the correct field?

Thanks in advance.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom Fields show in View Contribution but not in New Contribution
April 08, 2015, 12:40:17 pm
not sure if i can help unravel the confusion but first to get clear between fields used for CONTACTS and fields used for CONTRIBUTIONS, since you use both terms above eg "These show in basic Contact pages"

To have fields show for Contributions the field 'group' needs to be set up for Contributions not Contacts. Not clear which you have done.

See here http://d45.demo.civicrm.org/civicrm/admin/custom/group?reset=1

You can see that the set of fields called DONOR INFO was set up for Contributions.

Is that what your fields are set up for?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

timatidg

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5.36-cll
  • PHP version: 5.3.27
Re: Custom Fields show in View Contribution but not in New Contribution
April 08, 2015, 03:25:18 pm
Thanks petednz.

Yes, that is how mine is set up, except ONLY for type of "Donation," instead of "All." Is that the problem?
SetEnabled?Used ForTypeOrderStyle
Donors Yes ContributionsDonation3Inline

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom Fields show in View Contribution but not in New Contribution
April 08, 2015, 03:30:23 pm
I would suggest you set it up on demo as you describe and verify the outcome there - that way others like me can more easily review it
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

timatidg

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5.36-cll
  • PHP version: 5.3.27
Re: Custom Fields show in View Contribution but not in New Contribution
April 09, 2015, 05:20:03 pm
Petednz, thanks again. I did as you requested in the demo site. Since it worked there, I went back to my site. Apparently there was a glitch in my data. When I toggled the tab to not "Collapse this set on initial display" I received a warning about potential lose of data due to something being deselected. I proceeded with it and now the data set shows when Donation is selected for contribution type. (On the demo it works with the set collapsed or not collapsed,so I think this just cleared a problem in my data, which may have resulted in data loss but now I can actually use the field.)

SO: Anyone have any idea how to export the data in the Contribution/payments "notes" section so I can move the previously hand-entered data into the right field now???

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom Fields show in View Contribution but not in New Contribution
April 09, 2015, 05:44:57 pm
what is 'the right field'

i assume whatever the answer the solution is a mysql query - that i can't offer sorry
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom Fields show in View Contribution but not in New Contribution
April 09, 2015, 05:46:02 pm
Better still - flip the improved question on to the Stack Exchange site ;-)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Custom Fields show in View Contribution but not in New Contribution

This forum was archived on 2017-11-26.