I created four profile-fields under the same category. On creation of the fields, I set the options "Visibility = Hidden", "The user must enter a value. " and "Visible in user registration form." on each field to be true. Neither on registration nor on visiting my profile as admin (there is no category tab) those additional fields are visible. The fields are created in the datebase-table "profile_fields".

Attached, you will find some screenshots.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

Title: No display of additional profile-fields » Hidden profile fields can not be required or registration
Assigned: viadimezzo » chx
Status: Active » Needs review
FileSize
793 bytes
Gábor Hojtsy’s picture

Patch looks nice, although there is a dot missing from the end of the first message. (There was a time when we did not use to have dots at the end of messages, I wonder what the current practice is). Also I would write "cannot" instead of "can not", but this should be checked by a native English speaker, I guess.

bennybobw’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
982 bytes

I was looking through and saw a lot of dots on the ends of messages, so I added one to the first message. I changed can not to cannot and the second message reads

A hidden field cannot be set to visible on the user registration form.

instead of "set to be visible."

Here's the patch, should be ready to go.

Gábor Hojtsy’s picture

Version: 6.x-dev » 5.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Thanks, committed. I guess this needs to be backported.

Bart Jansens’s picture

Status: Patch (to be ported) » Needs review
FileSize
963 bytes

backported.

drumm’s picture

Status: Needs review » Fixed

Committed to 5.x.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.