jhpyle / docassemble

A free, open-source expert system for guided interviews and document assembly, based on Python, YAML, and Markdown.
https://docassemble.org
MIT License
769 stars 254 forks source link

Ajax input that allows you to accumulate to a list #280

Open nonprofittechy opened 4 years ago

nonprofittechy commented 4 years ago

The ajax input is great, and you can use list collect to gather multiple items on one screen. However, when you are building a list of similar elements, it's common to see a different style of input, like this one:

It allows you to type, click the option, and then use the same input to add a second item to the list.

nonprofittechy commented 3 years ago

This is partially resolved with the addition of the datatype: multiselect (https://docassemble.org/docs/fields.html#fields%20multiselect) although the default styling is not very user friendly. I think we may be able to restyle it with custom CSS and JS.

nonprofittechy commented 9 months ago

This is what we've been using for now. The interface isn't perfect but we haven't found a good replacement for it yet: https://github.com/SuffolkLITLab/docassemble-ALToolbox/blob/main/docassemble/ALToolbox/data/questions/multiselect.yml