-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from SuffolkLITLab/nice_county_name
Add nice_county_name method
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
docassemble/ALToolbox/data/questions/nice_county_name_demo.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
metadata: | ||
Title: Nice county name demo | ||
--- | ||
modules: | ||
- .misc | ||
--- | ||
objects: | ||
- address: Address | ||
--- | ||
mandatory: True | ||
code: | | ||
address.county | ||
print_county | ||
--- | ||
question: | | ||
Address | ||
subquestion: | | ||
`nice_county_name`: If the county name contains the word "County", which Google Address Autocomplete does by default, remove it. | ||
fields: | ||
- Address: address.address | ||
address autocomplete: True | ||
- County: address.county | ||
--- | ||
event: print_county | ||
question: | | ||
County | ||
subquestion: | | ||
${ nice_county_name( address ) } | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters