akiessling / t3ext-form_dynamic_recipient

1 stars 6 forks source link

Allow multiple selection #1

Open Hawkeye1909 opened 2 years ago

Hawkeye1909 commented 2 years ago

This is a feature request: Would it be possible to extend this by making multiple selection possible? I know it's a rare use case but could come in handy.

akiessling commented 2 years ago

The feature sounds nice and i actually needed something like this a couple of years ago for powermail.

For multiple selection we would probably need a) an own finisher that manipulates / generates the array of receivers for the selection b) a frontend interface that allows the multiselection These two pieces are then tightly coupled and won't work without the other.

The native multi select stuff was/is pretty bad, radio/checkboxes also won't work without additional JS for validation. I've used select2 for the powermail version, seems like https://choices-js.github.io/Choices/ is the new select-framework to use. I don't think that i will have time to work on this in the next couple of months due a very high work load, but i can for sure have a look if you want to give it a go!

PS: Development happens at https://github.com/extrameile/form_dynamic_recipient/ at the moment. (And it seems i can't move the issue over)

Hawkeye1909 commented 2 years ago

The native multi select stuff was/is pretty bad, radio/checkboxes also won't work without additional JS for validation. I've used select2 for the powermail version, seems like https://choices-js.github.io/Choices/ is the new select-framework to use.

I recently used BsMultiSelect for this.

I don't think that i will have time to work on this in the next couple of months due a very high work load, but i can for sure have a look if you want to give it a go!

I know this only too well... If I can find some time (very unlikely) I might try to help.

PS: Development happens at https://github.com/extrameile/form_dynamic_recipient/ at the moment. (And it seems i can't move the issue over)

I know, but issues cannot be created there...