Needs review
Project:
Dependent Fields
Version:
1.0.1
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Oct 2022 at 22:18 UTC
Updated:
1 Nov 2026 at 10:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chucksimply commentedComment #3
chucksimply commentedThere is a patch for Business Rules here... https://www.drupal.org/project/business_rules/issues/3207050. Since Dependent Fields is heavily based off the Business Rules module, wondering if this BR patch can be leveraged to create a solution.
Comment #4
chucksimply commentedOkay, created a patch based on #3. Works on my end (tested as parent - autocomplete, child - select). Drupal 9.4.7. Please review.
Comment #5
chucksimply commentedUpdated patch supporting Choices Autocomplete module. Though it's noted in this issue, the patch should be targeting the field type, not the element type. So there's likely room for improvement.
https://www.drupal.org/project/choices_autocomplete/issues/3331047
Comment #6
pcambraComment #7
pearls commented#5 works with Choices Autocomplete. Thanks for patch.
However, it controls after the selection and prevents the entity from being saved with a warning.
It is better to prevent selection when selecting an item that does not belong to the dependent list.
Comment #8
pcambraNW as per #6 and #7
Comment #9
shenron_segamag commentedAlso working for me on D9.
Comment #11
qusai taha commentedRe-roll the patch to make sure the select list is updated when values are removed from the autocomplete field.
Comment #12
qusai taha commentedComment #13
qusai taha commentedPatch to enable dependent fields with autocomplete functionality and support autocomplete fields.
Comment #14
qusai taha commentedComment #15
qusai taha commentedAdd support for AutocompleteDeluxe
Comment #16
qusai taha commentedComment #17
qusai taha commentedUpdated the patch to make it more dynamic, with AJAX support and selectors for the forms.