Posted by drupalok on April 9, 2009 at 2:54pm
Jump to:
| Project: | Webform |
| Version: | 6.x-3.0-beta4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
i dont know if this should be posted in WEBFORM or REALNAME issue.
but i would like to use the REALNAME TOKEN in a WEBFORM instead of the $username
how can i achieve this?
thanks!
http://drupal.org/project/realname
http://drupal.org/project/webform
Comments
#1
This request should go to Webform's issue queue.
#2
You can use the %profile token to get a users "realname". Just use
%profile[realname]where you would like the user's realname to be used.#3
I tried the token
%profile[realname]but it didn't work (resolved into an empty string).However, I don't need that anyway since I am using core's Profile module with the fields "profile_firstname" and "profile_lastname" defined. Thus, the token
%profile[profile_firstname] %profile[profile_lastname]resolves into the submitter's real name for me.#4
This has been fixed as part of #764270: Load full user object into %profile token. Now you should be able to use %profile[realname] as I described in #2.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.