Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | dependent_autocomplete_1172096_1.patch | 786 bytes | dafeder |
Comments
Comment #1
dafederIssue 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.
Comment #2
MrPhilbert CreditAttribution: MrPhilbert commentedHello,
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
Comment #3
dafederI 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.
Comment #4
peterpoe CreditAttribution: peterpoe commentedJust committed a fix for autocomplete text fields, and a compatibility fix for Node and User reference. Enjoy!
Comment #5
presleyd CreditAttribution: presleyd commentedDoesn't seem to be working for autocomplete widgets for text and number fields.
Comment #6
peterpoe CreditAttribution: peterpoe commented#5 Could you provide some context? Eg: which kind of autocomplete?
Comment #7
presleyd CreditAttribution: presleyd commentedhttp://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.
Comment #8
presleyd CreditAttribution: presleyd commentedThe 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.
Comment #9
presleyd CreditAttribution: presleyd commentedThe latest dev version now works with References fields but not the Autocomplete Widgets fields.
Comment #10
mstrelan CreditAttribution: mstrelan commentedIt 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.
Comment #11
peterpoe CreditAttribution: peterpoe commented#7: support for Autocomplete Widgets was just added in dev.
#10: multiple value fields are still unsupported by Conditional Fields.