LemmaLegalConsulting / docassemble-Covid19debt

A docassemble extension.
MIT License
0 stars 0 forks source link

Make address screen match UK address format better #54

Closed nonprofittechy closed 2 years ago

nonprofittechy commented 2 years ago

image

This tool is only for the UK, but we can use the standard address picker. states_list() will show the country within the UK, e.g., England, Wales, Scotland, Northern Ireland.

https://suffolklitlab.org/docassemble-AssemblyLine-documentation/docs/question_library/addresses

We should also use address autocomplete: True

stevejaubz commented 2 years ago

@nonprofittechy I am not sure what I am doing wrong but I cannot figure out how to use the state list properly for the UK. We don't have this attached to assembly line so I am not having success with the Assembly Line example... the "Vanilla Docasemble" example is not much different than what we have.

How do I get the right country code going? I am trying to add in set_country('GB') but not sure where to put it to trigger it

nonprofittechy commented 2 years ago

Here's an easy way to do it:

states_list(country_code="gb")

Note that the country code is lowercase