Posted by shadowhitman on January 9, 2012 at 12:28pm
3 followers
Jump to:
| Project: | Webform Patched |
| Version: | 7.x-3.15 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi,
Im using profile 2,
I want to include profile 2 field into Webform email.
I have tried these method:
1. Add %profile[field_pro2_ref] into email
2. Create new hidden component, with %profile[field_pro2_ref] as default values.
But both shows empty result on the email sent.
Thanks
Comments
#1
If you're using Drupal 7, install the Entity API module and enable Entity API and Entity tokens.
Now you'll see the profile tokens under "Users". Your token could look something like
[user:profile-main:field_full_name].#2
Hi,
It works, Thanks!
#3
Hi Shadowhitman and fizk,
How were you able to use the token in the webform? I am trying to use one as a default value for "first name," and the value for that on my tokens list is "[current-user:field_first_name]" -- (though I could use [profile2:user:field_first_name] )
Do I need to put anything other than [current-user:field_first_name]? It doesn't seem to be working that way, also tried preceding it with %, %token, %profile, %user, nothing seems to be working.
Are you using Webform 3.x or 4.x?
Any help is appreciated! Thanks :)
#4
The module we are using is not webform, but a fork of it, called webform patched.