Last updated May 17, 2009. Created by Kobus on September 16, 2005.
Edited by bekasu, Senpai, add1sun, Amazon. Log in to edit this page.
To make a field part of the registration, perform the following steps:
- Go to: Administer >> User management >> Profiles.
- 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.
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.
Comments
mandatory fields
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.
I would like to know this too.
Turn profile's required selection lists to behave as expected
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.
This change messes up translation synchronization
I have translated my profile select list items with i18n.
After changing the above, my translations are not in sync anymore with the original terms.
I have installed the profile helper module, and it works...
I will do some more testing.
Thanks for the helper module,
Thanks for the helper module, it works well. Why is this not part of the core installation?? Required should mean that the form forces the user to fill in the field, not providing an arbitrary value by default!
Password recovery page gone after profile module activated
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
http://www.locovich.com
Cell number
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
Sigmarsson
Visibility only during registration
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
These are important questions .. two people -including me, 3- have this issue help is appriciated
When I mark list as
Try creating a blank line at the top of the list
Len Inkster ISP MBCS CITP
I have the same problem in
I have the same problem in Drupal 6.14. Where is the risc to change CORW here? What do you think.
Profile Fields NOT displaying as expected on registration page
No matter how I try, or what I do, I cannot get the profile fields to display when registering.
Please help - it is driving me mad!
Validation Field during user registration Urgent help please !
Hi,
Am very glad to find such toturial am very much appreciate your effort on this topic, and I will wish if you can help me with some few trouble questions:
1. Adding more field to user registration form (e.g. verification key) in such a way that user must provide that key before registration take place, how will I store the verification key in tables, and I will like once a verification key is used, that key will not be used again by another user, and what will be the best way of generating 16 Digits random numbers.
2. Secondly what is the best way to customize webform so that I can have something like more than one field in a row (e.g. Surname, Middle, Firstname all in single line not in second row).
3. Finally, please which module will perform this task for me, I want user picture to be available in either leftside or rightside for the page once he logged in.
Thanks alot for your support.
Some suggestions
Hi,
1) I'm not sure if you have looked into these modules http://drupal.org/project/requestinvitation, http://drupal.org/project/invite.
3) I believe this is done via blocks or theming. The guys at Mustardseed Media are kind enough to have some free video podcast on such issues, http://mustardseedmedia.com/podcast/episode21.
I hope that helps.
Suggestions
1) What you are looking for here is the regcode module, this module can generate codes configured however you want them. This module can even assign roles based on the code entered.
2) Couldn't you simply just have them put their full name in a single line text field??
3) Can't think of anything at the moment for this one.
JB
Custom Filed Type
I want to make my own custom field type...
I want that user can select the date from javascript date time picker.
How can do that?
Is anyone have an idea for this?
Preselected option?
I would like certain custom checkboxes preselected (checked state) by default during registration. Primarily the "subscribe to emails" checkbox. Is there a way to do this?
(Drupal 6x)
How to get the user e-mail adres by a profile
Hi,
I have a node-profile.tpl.php with some fields from the profile. But how can is now lookup the e-mail address of that teh users which is related to the profile?
Thnx,
FRed