Hi, I was wondering if it is possible to allow user to add to dropbox more than just one element at once.
I've been looking for an option in API.txt but I found nothing.

I'm using the flatlist module 6.x-3.x-dev on drupal 6.10.

TIA, your module is great!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

- How would you want to do this?
- Why would you want to do this?

upupax’s picture

Like this video http://www.mediafire.com/download.php?yzzybqtzyjm .
It's a form I'm trying to develop to filter contacts and send them a message.
The first multiselect is a taxonomy form and the second is a multiselect list of nodes (this is a little list, but you have to imagine to have a big list of people).
Since this feature is really close to what dropbox actually does (and my code is full of bugs that I didn't show in the video) I thought to use the hs functionality, but I noticed there is no support for multiple selection in dropbox module.
I wonder if it could be set some how.

amitaibu’s picture

* Why? - I'm also looking for the feature. My use case is that I need to several (child) terms, and I don't want to click on the 'Add' many times.
* How? - It could be a 'normal' multiple select or selection with checkboxes (when I added '#multiple' => TRUE in _hierarchical_select_process_render_hs_selects() I saw it already added those checkboxes). EDIT: I had better_select module switched on, so I saw the checkboxes.

z.stolar’s picture

subscribing

AmitV-2’s picture

subscribing

Wim Leers’s picture

Title: Multiple selection in dropbox » Ability to select multiple items in the deepest level, to add them all at once to the dropbox
Component: Code - Flat List » Code
Category: support » feature
Priority: Normal » Minor

Okay, I've thought about this before too.

1) *If* this makes it in, it'll be in the form of #type = select and #multiple = TRUE, *not* in the form of #type = checkboxes
2) This is a feature that will *only* be available when the dropbox is enabled.
3) It's been a while since I've been deep into HS, so I'll have to think more deeply about the possible implications of adding this.

But it'll get added. If anybody's willing to write the necessary patch (or start working on it, because it'll have to be configurable in the UI as well), I'll gladly accept your work :)

Wim Leers’s picture

Status: Active » Postponed

Not much interest + busy + I really need to get version 3 final out = this will be for a 3.x point release.

robby.smith’s picture

subscribing

Bilmar’s picture

subscribing

no2x’s picture

Hi,

I also think, this would be an interesting feature.

@Wim Leers: Maybe there could be 2 aspects here. One is the option to add multiple items to the dropbox and the other one is the checkbox thing. I like checkboxes, because they are very user friendly. If you use HS in an exposed filter in a view, it might not be clear to every user, that he has to select items and has to click onto the Add button each time. Afterwards he has also to click the Search/Apply/whatever Button of the exposed filter.

So in my optinion it would be create to have the dropbow on the one hand and a checkbox type on the other side. What do you think?

Wim Leers’s picture

@no2x: Adding support for checkboxes to HS would make HS' code even more complex. Plus it would no longer live up to its name. Plus it'd become a UI monstrosity.
Checkboxes are not *always* good.
I'm sorry, that won't happen for the foreseeable future. Thanks for your understanding.

skitten’s picture

Did you have thoughts on how you would implement it? I'm getting persistent requests for being able to control or shift click to select and add multiple items on my site.

Renee S’s picture

subscribing. Control-click FTW!

goldlilys’s picture

Subscribing

Wim Leers’s picture

This won't happen in HS 3, unless somebody rolls the patch. Sorry.

ordually’s picture

Subscribing

Wim Leers’s picture

Issue tags: +HS4

Tagging for HS4. Included in the HS4 roadmap: http://drupal.org/node/1052670.

klonos’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

This will happen in the 7.x branch.

Owen Barton’s picture

Subscribe

Jerenus’s picture

Subscribe

anil614sagar’s picture

Dear Wim Leers & Subscribers,

Please find the patch files for above issue. I have tested patch files and working fine with latest stable version of HS.

Comments & suggestions are welcome :-)

Cheers,
Anil Sagar,
AZRI SOLUTIONS,
www.azrisolutions.com

Jerenus’s picture

Status: Postponed » Needs review
anil614sagar’s picture

Patch Updated to fix parents getting lost while updating terms with parents.

eminencehealthcare’s picture

This patch works good with the checkboxes but it makes it not possible to add a new term.