Hi

Please help, i´m trying to use token values from my user db, but can only get valuers like "%useremail" and "%useremail" to work. But would also like to get values from users profile, like name, adresse, postal code, phone and more.

Anyone how can say how the values shold be. have tried with %value[key] and %profile[key], but can´t get it to fetch data user profile.

The user signup proccess are using the Address Field modul, and the phone fields are group into a Field Collection.

hope someone can say how to get it to work.

Comments

nikonvulcano’s picture

also I am interested

itdev’s picture

I am using webform 7.x-4.0-alpha6, experience the same problem. When downgrading to webform 7.x-3.18, the token values work fine in default values.

quicksketch’s picture

Status: Active » Fixed

Anyone how can say how the values shold be. have tried with %value[key] and %profile[key], but can´t get it to fetch data user profile.

You can't pull advanced user profile data out of profiles when using the 7.x-3.x branch, there's an existing issue for that at #824606: Webform tokens (%session, %post) do not support arrays, but my general recommendation if you need better tokens is to use the 7.x-4.x version.

In the 4.x version, you would use a token like [current-user:field_first_name] to populate a field.

Status: Fixed » Closed (fixed)

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