Maybe a simple question, but I really need help here:

I added a Mail Field to the comment form. I set it to required. No problems, this far. Now I want the users email autofilled if the user is logged in, so I tried to set the default value [current-user:mail]. But this doesn't work of course. Do I need other modules to do this?

Thanks for help

EDIT:

Do I need other modules to do this?

Yes, install http://drupal.org/project/field_default_token. See also https://drupal.org/comment/7778739#comment-7778739

Tormi

Comments

Shimegi’s picture

Same request here.

Lios’s picture

Same request here.

dsuguy’s picture

Priority: Normal » Critical

Same!!

or add a settings page to allow the administrator to make the field auto-fill with the user's email address if logged in.

agerson’s picture

Yes, needed! Would be nice if we could use a token to auto fill

agerson’s picture

Component: Documentation » Code
Category: support » feature
agerson’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
maximkashuba’s picture

really needed!

boabjohn’s picture

Joining this thread and:
1: noting the similarity with https://drupal.org/node/1699454 (patch did not work for me); and
2: suggesting that we cooperate on a bounty if the maintainer needs to do new work to make this happen?

Kind regards,
JB

dooug’s picture

Title: Compatibility with Tokens » Default value token on comment email field doesn't work
Category: feature » bug
Priority: Critical » Normal

This doesn't appear to require the "critical" priority. https://drupal.org/node/45111

dooug’s picture

Title: Default value token on comment email field doesn't work » Email field on comment form with a current-user token for the default value doesn't get replaced.

Sorry, re-wording title again for clarity

boabjohn’s picture

Cool, good changes. Considering the issue is 2.3 years old, I wonder what the chances are of getting some positive movement here??

tormi’s picture

ckng’s picture