Skip to content

Commit

Permalink
Merge pull request #84 from SuffolkLITLab/nice_county_name_demo
Browse files Browse the repository at this point in the history
Add demo of `nice_county_name()`
  • Loading branch information
nonprofittechy authored Jul 14, 2022
2 parents 6669f78 + a3ff040 commit 7b928a8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docassemble/ALToolbox/data/questions/nice_county_name_demo.yml
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 ) }
---

0 comments on commit 7b928a8

Please sign in to comment.