Closed (fixed)
Project:
Webform
Version:
6.x-3.0-beta4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2009 at 14:54 UTC
Updated:
22 Apr 2010 at 08:00 UTC
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
Comment #1
roball commentedThis request should go to Webform's issue queue.
Comment #2
quicksketchYou 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.Comment #3
roball commentedI 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.Comment #4
quicksketchThis 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.