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 Profiles (Moderator: Dave Greenberg) »
  • Custom fields in user registration form (Drupal)
Pages: [1]

Author Topic: Custom fields in user registration form (Drupal)  (Read 2380 times)

HUB

  • Guest
Custom fields in user registration form (Drupal)
November 27, 2010, 10:48:12 am
Hello alls,

I'm just setting the data I need on the user registration form in drupal. I'm working with a CiviCRM profile Identity that is mainly using fields from the Contact type. But I also want to add a multiple text edit field for the user to add comments when registering. So I made a custom field and added it to the profile Identity, everything seems to be working properly, when I use the Use (Create mode) or Preview mode, the form is as I want.

But when I go to a new user registration form (through Drupal) the CiviCRM profile is added but the custom field is not appearing, no matter which options I set in the CiviCRM profile. But when the new user is registered, the custom field now appear in his profile...

So I cant understand why is the custom field working properly everywhere but in the registration form...
Also, when setting the weigth of the custom field, in the custom field setting section, no matter I set any weigth, the weigth is always saved as 2. But the field added in the profile Identity setting save his weigth properly.

Also, I added configuration to use reCaptcha in the user registration page. When using Use (Create mode) from the profile setting page, the reCaptcha is showing, but when going to the registration form through Drupal, as the custom field, the reCaptcha doesnt show...

Thanks for your hints or helps...
HUB

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom fields in user registration form (Drupal)
November 27, 2010, 05:43:23 pm

1. we suppress the recaptcha during user registration to avoid conflict with drupal's captcha solutions

2. Can you check that anonymous user has permissions for "access all custom data" (in the drupal permissioning screen).

3. if the above still does not fix, can you reproduce on our demo server. Also the weight issue

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

HUB

  • Guest
Re: Custom fields in user registration form (Drupal)
November 28, 2010, 08:27:13 am
Thank you very much Lobo,

The permissions for "access all custom data" were the thing. Does giving access to all custom data to anonymous mean that any anonymous user could see these datas? I would be annoyed if it will, because I want and set this custom label to be "User and Admin only"...

Maybe I will need to learn much more about all this Drupal privilege system...

I will look for the solution at the Drupal level for my reCaptcha.
Thanks again!
HUB

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom fields in user registration form (Drupal)
November 28, 2010, 05:00:16 pm
Anonymous users won't see this data (unless you ALSO give them 'access CiviCRM' permission and permission to view and / or edit contacts - which you should not do).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Custom fields in user registration form (Drupal)

This forum was archived on 2017-11-26.