Hi, I have a nodereference autocomplete field and am unable to use conditional fields to hide it. Other widgets are working fine for me. On latest dev.

CommentFileSizeAuthor
#1 dependent_autocomplete_1172096_1.patch786 bytesdafeder
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dafeder’s picture

Status: Active » Needs review
FileSize
786 bytes

Issue comes from bad parent structure when the dependent field uses a widget not described in the module explicitly. I'm tentatively submitting this patch, but I admit I don't completely understand the logic going on in conditional_fields_dependent_structure() and expect this could break other widgets even as it fixes this one.

MrPhilbert’s picture

Hello,
I tried to apply this patch to the June 6th version of CF in both netbeans and eclipse and both failed?
Any chance of adding this to dev? Or even Autocomplete Deluxe?

Thanks for the great module.
MrPhilbert

dafeder’s picture

I doubt highly that this patch will be accepted as-is, it's more of a hack to make it work in this one case. However, it's very simple; I'm sure that you can make the change manually if you take a look at the patch code.

peterpoe’s picture

Status: Needs review » Fixed

Just committed a fix for autocomplete text fields, and a compatibility fix for Node and User reference. Enjoy!

presleyd’s picture

Doesn't seem to be working for autocomplete widgets for text and number fields.

peterpoe’s picture

#5 Could you provide some context? Eg: which kind of autocomplete?

presleyd’s picture

http://drupal.org/project/autocomplete_widgets allows a text field to have an autocomplete widget that suggests entries based on a list of values or existing data entered into that field in other nodes. I've added it as a dependent to a text list when the selected text value is 'Other'. The autocomplete text field appears on the page on first load prior to selecting other.

I also just noticed that node reference fields as dependents aren't hid when they should be either. Just to clarify, I have the dev version from today installed.

presleyd’s picture

Status: Fixed » Needs work

The autocomplete widgets module listed above doesn't seem to work neither does node or user references as lists or autocompletes from what I can tell.

presleyd’s picture

The latest dev version now works with References fields but not the Autocomplete Widgets fields.

mstrelan’s picture

It also doesn't seem to work with the standard autocomplete widget that is available to the References module. Maybe it does when it's a single value field, but when it is a multi value field (ie with TableDrag) then it doesn't work. It just hides the first autocomplete field in the table.

I am not referring to the autocomplete_widgets project.

peterpoe’s picture

Status: Needs work » Fixed

#7: support for Autocomplete Widgets was just added in dev.
#10: multiple value fields are still unsupported by Conditional Fields.

Status: Fixed » Closed (fixed)

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