HowTo: Make a field part of the registration process

Last modified: May 17, 2009 - 00:32

To make a field part of the registration, perform the following steps:

  1. Go to: Administer >> User management >> Profiles.
  2. Create the profile field if it doesn't exist yet, and as follows:
    • Under the 'add new field' section, choose the type of field you want to create by clicking its link.
    • Provide the particulars for the field, namely category, title, form name, explanation, weight, visibility and page title.
    • Now check whether the field may or may not be left empty.
    • To make it appear on the registration page, make a checkmark in the 'Visible in user registration' checkbox.
  3. Click on the 'Save field' button.

Your new field will now appear on the registration page.

Note that in Drupal 4.6 and 4.7 the links are found in administer >> settings >> profiles.

Visibility Notes

I've found some stuff by trial and error. These are not bugs, just observations :-)

This is valid for 4.7 where New Members Applications are blocked pending Admin Approval.

1) Hidden fields do NOT show in Registration, even if made mandatory and flagged to appear in Registration.

2) Private fields will show, but only AFTER the initial Username / Email request, at which point they pop up (in angry red if they are required fields).

3) Public appear as you'd expect - up there on the Registration page.

mandatory fields

docmiller - May 25, 2009 - 18:19

When I mark a list as mandatory drupal fills in the first value in the list. So the field is not empty but the user could register without fillining in any info and just register with the default value.

Otherwise the field has no default value when the field is marked as "can be empty".

How can I make a mandatory field with no preselection?

I would like to know this too.

geoffs52 - July 2, 2009 - 23:05

I would like to know this too.

Turn profile's required selection lists to behave as expected

tumblingmug - November 18, 2009 - 12:31

For Drupal 6.x the most efficient (regarding performance, but not recommended) solution would be to replace line 395 of the profile.module file:

<?php
  $options
$field->required ? array() : array('--');
?>

with
<?php
  $options
$field->required ? array('' => t('Please select...')) : array('--');
?>

Other solution:
But the probably best solution is a little helper module and leave core code unchanged.

Password recovery page gone after profile module activated

locovich - August 7, 2009 - 11:32

Hello,

Quite new to the Drupal community, but have been using Drupal for a couple months (4 instalations) already.

Recently I activated the profile module to one of these sites, in order to include some additional info on the user profile records.

My question, doubt and problem arises from the fact that from the moment I activated the profile module, I can't access the "password recovery" page, when hitting /user/password, the 404 error page pops up.

So, I'd like to know if this is expected functionality (can't find anything in the documentation about that page being disabled! so I want to discard any other problem).

If this is just the way the module is, then could someone point me to another module which allows me to set up additional field in the reg. form, AND keep the password recovery page?

Thanks a lot!
Locovich

Cell number

Sigmarsson - October 23, 2009 - 08:03

Hello!

User registration page can be populated with more input fields but how can we perform the data validation on input given by the user? In my view AJAX would be great but I assume D6 has its own way to perform it, doesn't it? For example how to check if a correct cell number format is entered? e.g. +36x01234567 x € {2,3,7}

Thanks!

Sigmarsson

Visibility only during registration

bderrly - October 30, 2009 - 15:53

I would like to create a field that is only present during registration. I want a user to give a reason for requesting an account so an administrator can make a better decision if it is a valid reason. I don't want this reason to be part of the user's personal information after registration is approved. Is there a way to do this with this module?

When I mark a list as

pivey - November 2, 2009 - 10:54

When I mark a list as mandatory drupal fills in the first value in the list. So the field is not empty but the user could register without fillining in any info and just register with the default value.

Otherwise the field has no default value when the field is marked as "can be empty".

How can I make a mandatory field with no preselection?

These are important questions .. two people -including me, 3- have this issue help is appriciated

When I mark list as

LenInkster - November 19, 2009 - 14:26

Try creating a blank line at the top of the list

Len Inkster ISP MBCS CITP

 
 

Drupal is a registered trademark of Dries Buytaert.