Closed (fixed)
Project:
Addressfield Tokens
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2016 at 23:04 UTC
Updated:
3 Aug 2017 at 19:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jeremdow commentedDoes anyone know how to reference these tokens from the form submission - I feel like I must be missing something simple here?
Comment #3
vsalvans commentedHI, I've got the same issue. I've tried everything [submission:values:address:postal_code] [submission:values:address][postal_code] [submission:values:address:address_field:postal_code] , etc...
At the moment I've end up by creating a custom template in my theme called webform-mail-[nid].tpl.php and use this code for every address subfield:
Where index 2 after in "data" property means the second webform component (is indexed from 1). However I'd like to use addressfield tokens, as are so convinient instead of creating templates files.
Comment #4
daniel.imre commentedDoes anyone know if it's possible to use these webform addressfield tokens in a view? The view provides a number of replacement patterns, but none of them are of use.
Screenshot: http://imgur.com/a/0p3Tm
Comment #5
lambic commentedAttached is a patch for this, it adds some extra text to the help text for webform submissions values tokens and parses individual addressfield tokens for webform submission components.
Comment #6
lambic commentedUpdated the patch to make the help text a bit better.
Comment #8
markie commentedAdded patch to 7.x-1.x branch. Additionally cleaned up the coding standards for that file. Thanks for your patience.