Does not support multiple value fields well
jrefano - November 17, 2008 - 18:51
| Project: | Flexifield |
| Version: | 6.x-1.0-alpha2 |
| Component: | User interface |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
If a flexifield content type contains a multiple value field, the javascript for the entire form submission gets broken.

#1
I have tested this and you are correct. The JavaScript is broken for multi-value fields.
My use case was:
Title 1
Title 2
Title 3
I created a flexifield content type called "Specification" and used the following fields:
Fields:
This was attached to another content type using Flexifield and allowed to be multi-value (unlimited) itself.
This breaks JS on the page, fieldsets don't collapse, everything JS-based seems to fail.
I also noticed that required fields are required on admin/content/node-type/[node-type]/fields/field_[field]. This is silly because you are forced to have a default value when you may not need one.
#2
subscribe.
#3
subscribe
#4
I ended up using content_multigroup.module which is part of CCK (just hidden by having no .info file).
#5
@psynaptic #4
Does it support multiple values field like freetagging?
#6
What appears to be occuring is the "Add another item" function for child fields within flexifields, adds a new flexifield parent field item if nothing is filled in, instead of adding more fields to the child.
#7
I also noticed that the buttons normally get the class 'ahah-processed'. If you put u multi-value field in a flexifield the 'Add another item' buttons don't get that class added to them...
I think it has something to do with duplicate id's for html elements that causes ahah.js to crash and not process the page correctly.
If I find the time I will look in to this.
#8
This is now fixed in 6.x-1.0-alpha2. Note, however, that you need to enable the "Disable drag-and-drop for this field" checkbox on the configuration form for the flexifield field when it is containing a multivalued field that uses drag-and-drop and the "add another item" button inside.
#9
6.x-1.0-alpha2 fixes the issue EXCEPT for when the fields are inside of a fieldset.
So if you have the exact same thing as what was described in post one but you have a Group around them, it breaks.
effulgentsia, I have sent you login info to test the issue I am describing.
#10
It is still broken when the flexifield is inside a field group. Can some one confirm this? I have reproduced it on two sites.
I also sent effulgentsia login info to try out what I have tried, but he never responded. Anyone else want to try it out then please contact me to see the issue.
#11
bump? anyone out there?
#12
I haven't had a chance yet to work on flexifield since releasing alpha2, but I'll resume that shortly. I opened a new issue (#399886: Multi-valued fields inside a field group inside a flexifield don't work) that I see as more of a problem with integration with fieldgroup rather than belonging on this thread. So I'm marking this thread as fixed, although if someone discovers a different bug with multi-valued fields inside a flexifield, feel free to change the status accordingly.
#13
Automatically closed -- issue fixed for 2 weeks with no activity.