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

roball’s picture

Project: Real Name » Webform
Version: 6.x-1.x-dev »

This request should go to Webform's issue queue.

quicksketch’s picture

Status: Active » Fixed

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.

roball’s picture

Status: Fixed » Active

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.

quicksketch’s picture

Version: » 6.x-3.0-beta4
Category: support » feature
Status: Active » Fixed

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.

Status: Fixed » Closed (fixed)

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