SuffolkLITLab / docassemble-AssemblyLine

Quickly go from a paper court form to a runnable, guided, step-by-step web application powered by Docassemble. Swap out branding and pre-built questions to meet your needs.
https://suffolklitlab.org/docassemble-AssemblyLine-documentation/
MIT License
41 stars 5 forks source link

Don't pass 'bare' parameter unless it's an ALAddress #817

Closed nonprofittechy closed 8 months ago

nonprofittechy commented 8 months ago

Also don't pass show_impounded

Fix #816

Test YAML that only works after this change:

---
include:
  - assembly_line.yml
---
objects:
  - the_address: Address
---
id: your address
question: |
  What is your address?
subquestion: |
  Where do you live?
fields:
  - Street address: the_address.address
    address autocomplete: True
  - Unit: the_address.unit
    required: False
  - City: the_address.city
  - State: the_address.state
    code: |
      states_list()
    default: MA      
  - Zip: the_address.zip
    required: False
---
mandatory: True
code: |
  users.gather()
  users[0].address = the_address
  message(users[0].address_block())