When I configure cck select other widget with a list field that allows multiple values, the field disappears in the node form as soon as 'select another' is used.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mradcliffe’s picture

Status: Active » Postponed (maintainer needs more info)

Do you mean multiple values for the field such as setting it to 1, 2, 3, 4, ..., unlimited? Or do you mean selecting multiple values in a single select list?

What's the work flow you used to get there? I haven't done a multiple value select list in Drupal 7 yet.

Edit: right now, this latter thing isn't supported, and the former works, but not fully in Drupal 7 (no javascript goodness).

mradcliffe’s picture

Assigned: Unassigned » mradcliffe
Category: bug » feature
Priority: Normal » Minor
Status: Postponed (maintainer needs more info) » Postponed
FileSize
460 bytes

Here's an initial patch. I'm not going to work on this until I get some of the other issues done.

Caveats:

  • Any multiple value works, but does not support any javascript hiding.
  • "Unlimited" and "add more" is bugged to heck and back, but it works in a non-production way.

No tests.

mradcliffe’s picture

Status: Postponed » Active

Javascript hiding actually does work... with the recent patches.

mradcliffe’s picture

Status: Active » Needs review
FileSize
1.99 KB

So I'm going to need to add a wrapper around the select other list div because add additional completely destroys the id when it rebuilds the form. :(

I have this working and passing all current tests, but may need to do an add more test.

mradcliffe’s picture

Another issue: Only the default value for the first field is selectable.

mradcliffe’s picture

Status: Needs review » Fixed

Okay, committed tests and multiple values patch + fix for default values. Passes all tests.

mradcliffe’s picture

Status: Fixed » Needs work

Hmm... the tests are not exhibiting what is happening in real life. Sigh.

mradcliffe’s picture

Status: Needs work » Fixed

Okay, we're fixed now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.