Skip to content

Conversation

@finnlewis
Copy link
Member

No description provided.

Adnan-cds and others added 13 commits October 12, 2023 14:41
The UPRN portion of addresses selected through the address lookup element can
now be used in webform submission tokens.  Example token:
[webform_submission:values:WEBFORM-ELEMENT-ID:uprn]

Additionally, UPRNs can now be included in form submission results *tables*.
The following sub-elements of our UK Address lookup webform element are now
available as tokens:
- [webform_submission:values:WEBFORM-ELEMENT-ID:address_1]
- [webform_submission:values:WEBFORM-ELEMENT-ID:address_2]
- [webform_submission:values:WEBFORM-ELEMENT-ID:town_city]
- [webform_submission:values:WEBFORM-ELEMENT-ID:postcode]
- [webform_submission:values:WEBFORM-ELEMENT-ID:lat]
- [webform_submission:values:WEBFORM-ELEMENT-ID:lng]
- [webform_submission:values:WEBFORM-ELEMENT-ID:uprn]
- [webform_submission:values:WEBFORM-ELEMENT-ID:ward]

To achieve this, we have removed the address_entry sub-element from the UK
address lookup composite element.  The sub-elements of address_entry have become
sub-elements of the UK address lookup composite element instead.
An empty address should return an empty array instead of an array with a single
empty value.  This is for clarity rather than as a fix.
@finnlewis finnlewis merged commit 95df143 into release-1.x Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants