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
43 stars 5 forks source link

Simplify and provide models for gathering custom attributes when gathering items in an ALPeopleList #414

Closed nonprofittechy closed 2 years ago

nonprofittechy commented 2 years ago

E.g., a version for "with birthdates" to gather children, a version "with mailing address" for mailing addresses, etc.

We could easily create these as generic object blocks so people can just quickly pull in with the .using(

nonprofittechy commented 2 years ago

From deep dive discussion, these might be helpful as sample blocks in ALRecipes. But a different feature would be more helpful:

Have a new syntax, like “complete_attribute_list” that accepted a list of attribute names as parameters - users: ALPeopleList.using(complete_attribute_list=[“name.first”, “birthdate”, “employer_name”])

BryceStevenWilley commented 2 years ago

Update: the complete_attribute as a list of strings to be completed has been added to Docassemble 1.3.25: https://github.com/jhpyle/docassemble/commit/a350f9a6f94057fd9c90dad9da20cdf35f667d7e

nonprofittechy commented 2 years ago

Good catch, thanks @BryceStevenWilley. I also started some sample code in ALRecipes