I've put a location field in the user profile section and am wanting to use tokens to autofill the saved info in another form. Everything works fine until you get to certain parts of the Location field. The Postal Code field is too small to hold the actual token request and the Country field has no place to actually hold the token.

Has anyone found a fix/work-around for this issue?

Comments

HunterElliott’s picture

It's still present in 7.x-3.7. To reiterate: I'm trying to use Tokens to pre-populate Location field data from a Location field in a Profile2 page into a Location field in an Entityform.

In a test Profile2 page and a test Entityform, the base token is this: [current-user:profile-location-profile-test:field-profile-loc-test:?] where the ? is replaced with the field-specific value like name, city, phone, etc.

When pasting in the token into various fields, the token is truncated like this...

postal code = [current-user:pr
phone or fax = [current-user:profile-location-
state/province = [current-user:profile-location-profile-test:field-profile-loc-te
and of course there is absolutely no place that will let you put in a token for the country - it only allows a pre-selected value of a single country or "select". But even keeping the default value of a pre-selected country, since the token for state/province is truncated, trying to use a token in that field will give the error "The specified province was not found in the specified country."

As it's been about 2 years since I originally posted this and there's been no traction on it, is there an alternate module anyone can suggest that provides the same functionality but does allow tokens to be used?