Is it possible to have multiple "other" options. If I type first then I could add another one and so on.

Comments

danielb’s picture

At the moment it supports delimited values (like comma seperated).
I know what you mean though, you want a second box to appear if the first one is used? Would require some development to handle that.

clashar’s picture

yes, the new other box should appear if one is filled.

so no ready solution exists...

Alan D.’s picture

I'm not sure what the above discussion is about, but a feature request in a similar direction is to have any checkbox enabled with an other or specify more textfield

I.E

Select you favorite color:
[ ] Black
[ ] Blue, which tone [ ]
[ ] Red
[ ] Other, please specify [ ]

This would be very cool, but I would expect that it would mean a lot of development.

danielb’s picture

Version: 6.x-1.6 » 6.x-2.x-dev
danielb’s picture

I'm considering switching the other field over to an array. Delimiter is so ghetto

Then this might be more viable. Alan D's suggestion isn't bad either - just not sure how to set that up.

danielb’s picture

Internally these values are already treated like an array, so that's not an issue.

However implementation of this doesn't seem like it would be fun

danielb’s picture

Status: Active » Postponed

This could be done either purely with JavaScript and then molest the values in and out of a delimited list, or it could be done by redesigning how the other field is generated and submitted, and have the php work out everything it should. The second way is what should be done, but if we do it now in the current branch, all the integration stuff will break. So it should be in a new branch since it's a redesign, and I'm not ready for that at the moment.

stella’s picture

+1 for Alan D.'s suggestion

danielb’s picture

Status: Postponed » Closed (duplicate)
danielb’s picture

cybermache’s picture

Status: Closed (duplicate) » Postponed

Is it possible to give every selectable item the ability to have a text field associated with it? Might be a "two birds, one stone" sort of thing. It would certainly solve the multiple "other" fields as well as what Alan D is suggesting.

Just a thought, probably just as difficult to code but might be more effective? You could do away with the title option then and maybe get rid of the pre-built option too? Though, I could see it being useful inline with each option, but might seem a little over board unless you would add your own pre-builts as you go.

danielb’s picture

This issue is hard enough without all the crazy ideas and lack of code.

Alan D.’s picture

I haven't tried it, nor looked at the code, but you may be able to get some inspiration from the sandbox project Select More, http://drupal.org/sandbox/bpwilliams/1320212

Select More defines a new field (drupal 7) or CCK field (drupal 6) that combines a set of checkboxes with a hidden textarea for each choice. When a checkbox is selected, the corresponding textarea is exposed for the user to add in additional information. If an item is not checked, the textarea is never shown.

The module allows for the creation of fields via the forms API, or thru the fields API with a custom widget.

BTW, I think that I mimicked this request for a webform using multiple single checkboxes, flagging the ones of interest to be select or others. Worked, but messy in terms of the additional theming and data storage.

Cross posting #1670918: Merge efforts with Select or other module?

danielb’s picture

Is there anything wrong with using Select More if you want to add a textfield for each choice? That would mean I don't have to do it :P

Alan D.’s picture

Sounds like you have too much on your plate too :)

If Brian (bdawg8569) or someone else is interested, would you want to consider merging projects? If not, just mark this as works as designed / wont fix!

danielb’s picture

I'm keen to do clashar's original request in this issue (though I have no idea how yet), and as interesting and potentially useful as having an other field for every choice is, I don't think it's quite in line with what this module claims to provide. It would be nice to allow Select More to evolve and find it's feet and it might offer a good alternative to people that need something a bit different.

haydeniv’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Status: Postponed » Active

New features go against 7.x so changing version. No patch so this is Active.

halloffame’s picture

Any update on this?

legolasbo’s picture

Issue summary: View changes

New features will be developed against the 7.x-3.x branch

legolasbo’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
daften’s picture

Status: Active » Closed (outdated)

Closing as outdated because no activity in a long time and Drupal 7 goes EOL soon. Feel free to re-open if needed.