(note: OP updated with better info)

Goal: I have a hidden field. I want the user to enter a value when they register - but I don't want it to be visible when they view their account.

This is not currently possible with profile module. If the field is hidden, it will never be seen on the registration form. IMO, there is no good reason for this, I can already hide the field if I have to.

This patch displays an invisible profile field on registration. IE. if it is flagged as "visible in registration form" then we assume that this is an override option. My patch removes code - which is great if indeed my logic is right.

The risk is existing sites which currently have "visible in registration" on hidden fields (which currently makes no difference). So I wonder if the upgrade path needs to force this setting to false on hidden fields...

Comments

sime’s picture

StatusFileSize
new879 bytes

updated patch

sime’s picture

StatusFileSize
new924 bytes

updated patch

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

makes sense. works as advertised.

pwolanin’s picture

Version: x.y.z » 6.x-dev
Status: Reviewed & tested by the community » Needs work

needs to be re-rolled for 6.x

pancho’s picture

Version: 6.x-dev » 7.x-dev

Cool idea, but as a new feature it needs to be moved to the D7 queue...

Jaza’s picture

Version: 7.x-dev » 8.x-dev

Makes sense. Also still needed, since (unfortunately) profile module RIP didn't happen in D7.

damien tournoud’s picture

Status: Needs work » Closed (won't fix)

The profile module is obsolete. Won't fix.