2

I am currently using an auto-complete field to indicate which member is representing which organisation. When I preview the field, either in the personalized fields or in the profile I am using it in, the field appears fine (see first image). However, when I use that profile in a contribution page, the field is only ever rendered as a textbox without any kind of auto-complete enabled (see image 2). Is there some kind of custom permission I need to set or is this simply a bug?

Thank you

Image 1: Working field when previewing the profile

Image 2: Non-working field when viewed from contribution page

2
  • I don't think it's relevent, but CiviCRM is installed as a Drupal module.
    – ATNPGO
    Jun 22 '15 at 15:34
  • Can you check your browser's console for JS errors?
    – Coleman
    Jun 22 '15 at 19:01
2

Based on testing on the demo server, it looks like custom contactRef fields do work when embedded in the "profiles" section of the contribution page, but fail to work properly when in the special "on behalf" profile. This looks like a bug.

Can you please file an issue in the bug tracker for this?

1
1

This may be due to the field's visibility. You may need to set it to public pages in the settings of the field in the profile (>>Administre CiviCRM >>Profiles >>Edit Profile Field). Here's a Screenshot:

Field Visibility

1
  • Thanks for your reply. Unfortunatelly, that's what it was already set as. I've tried all three values and I get the same result no mather which one I pick.
    – ATNPGO
    Jun 22 '15 at 15:45
0

Unfortunately I don't believe that CiviCRM supports contact lookup fields on the profiles currently. If you use the Webform CiviCRM integration on the Drupal platform you can use the "existing contact" field to get this feature.

Just be aware that in effect having a contact lookup field is exposing your data to a public form!

0

I tested this on a demo site, creating a custom contact reference field in a profile on a contribution page, like so:

enter image description here

I then visited that contribution page, and the field looked fine, and I was able to select a contact without any problem:

enter image description here

I suggest you check your browser's console for any javascript errors, and go through these troubleshooting steps. Also upgrade to the latest version of CiviCRM if you haven't done so already.

2
  • Thanks for your reply. Unfortunatelly, the browser console is empty and no relevent error messages are written server side either. Also, I am running the latest version of CiviCRM.
    – ATNPGO
    Jun 23 '15 at 11:56
  • Hi again, I've recreated my issue on the drupal demo server. You can see the form here. If you check "I am contributing on behalf of an organization." the "Rep" field should be a contact reference field.
    – ATNPGO
    Jun 23 '15 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.