Active
Project:
Email Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2011 at 11:27 UTC
Updated:
25 Feb 2015 at 02:26 UTC
Jump to comment: Most recent
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
Comment #1
Shimegi commentedSame request here.
Comment #2
Lios commentedSame request here.
Comment #3
dsuguy commentedSame!!
or add a settings page to allow the administrator to make the field auto-fill with the user's email address if logged in.
Comment #4
agerson commentedYes, needed! Would be nice if we could use a token to auto fill
Comment #5
agerson commentedComment #6
agerson commentedComment #7
maximkashubareally needed!
Comment #8
boabjohn commentedJoining 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
Comment #9
dooug commentedThis doesn't appear to require the "critical" priority. https://drupal.org/node/45111
Comment #10
dooug commentedSorry, re-wording title again for clarity
Comment #11
boabjohn commentedCool, good changes. Considering the issue is 2.3 years old, I wonder what the chances are of getting some positive movement here??
Comment #12
tormiUse http://drupal.org/project/field_default_token as a temporary solution. See also https://drupal.org/comment/7778739#comment-7778739
Tormi
Comment #13
ckngfield_default_token is currently not working, see #2161905: Default Value is confilicting with Field Default Token module