When anonymous users create registrations (or an authenticated user creates a registration for "Other person"), the Email field does not have a red asterisk next to it signifying it is required. Having Email appear to be optional (when it is required by design) makes it needlessly difficult to fill out the form.

Please add the red asterisk to make it consistent with the other required fields, or recommend a practice for faking one. Context: I'm using this module on several sites in a multisite, each with a different theme. Some CSS trickery seems possible, but I'd have to copy it to several different themes. Handling it outside the theme in a centralized way seems less fragile, to me.

Comments

sclsweb’s picture

For anyone interested in the CSS trickery, this shows an asterisk next to Email when added to theme CSS:

label[for="edit-anon-mail"]:after {
color: #CC0000;
content: ' *';
display: inline;
}

Downsides of this method:

  • Not accessible to visually impaired users. It doesn't modify the form markup to announce the Email field is required like the other required fields.
  • Does not show up in Internet Explorer 7.
jochen wendebaum’s picture

Thank you for this tip, nice work-around, but a fix is needed indeed!

digitgopher’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new622 bytes

Anything wrong with adding #required to the definition?

cboyden’s picture

jami’s picture

Assigned: Unassigned » jami
jami’s picture

Status: Needs review » Fixed

Looks great. Patch will be committed soon. Thank you!

  • jami committed 98c7184 on 7.x-1.x
    Issue #2232833 by digitgopher: Display a red asterisk next to required...
CountPacMan’s picture

StatusFileSize
new1011 bytes

Patch to the patch to restore ability for authenticated users to register themselves (#states and #required issue).

jami’s picture

Patch to the patch is RTBC. Nice catch, CountPacMan.

jami’s picture

Status: Fixed » Reviewed & tested by the community
jami’s picture

Assigned: jami » Unassigned
Status: Reviewed & tested by the community » Fixed

  • CountPacMan committed e25b50a on 7.x-1.x
    Issue #2232833 by digitgopher, CountPacMan: Display a red asterisk next...

  • jami committed 98c7184 on 7.x-2.x
    Issue #2232833 by digitgopher: Display a red asterisk next to required...

Status: Fixed » Closed (fixed)

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

sclsweb’s picture

This issue is not fixed as of 7.x-1.6 -- could a maintainer reopen it? The red asterisk is not displayed next to required Email anon_mail form field.

sclsweb’s picture

Aha. This is only partially working. The red asterisk is displayed correctly when one is authenticated, registering an "other person." It is NOT displayed correctly when you are registering as an anonymous user.

Maintainers -- advise on opening a new issue for this or reopening this one?

mnarlock’s picture

Any update on this? All of our sites are seeing this same issue...anon users don't see the asterisk.