Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nonprofittechy opened this issue Apr 17, 2020 · 2 comments
Open

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

nonprofittechy opened this issue Apr 17, 2020 · 2 comments

Comments

@nonprofittechy
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant