Active
Project:
Conditional Fields
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2013 at 14:40 UTC
Updated:
4 Nov 2023 at 00:12 UTC
Jump to comment: Most recent
Comments
Comment #1
stevenx commentedI am willing to pay if that helps solving the issue fast :)
Comment #2
Grayside commentedGiven Conditional Fields is built around #states, it's potentially a deeper incompatibility.
Comment #3
Grayside commentedComment #4
mazdakaps commentedstevenx did you found any solution yet?
Comment #5
stevenx commentedno. not yet.
maybe we could hire someone?
Comment #6
omdb commentedI'm also looking for this solutionComment #7
omdb commentedI'm also looking for this! If anyone can help please?????
Comment #8
geek-merlinI can confirm that SHS neither respects #access nor #disabled.
Comment #9
stborchertCommitted a small fix for the "disabled" problem (setting
#accesstoFALSEworked before).Regarding "Conditional fields": I've tested with Drupal 7.23, SHS 7.x-1.x-dev and Conditional fields 7.x-3.x-dev and it worked without any problem. Can you please try again and give detailled information about your configuration and what exactly is not working?
Comment #10
timmey987 commentedI also have the problem. I also checked all posibiltys to configure shs and conditional fields with no success. The only thing i want is to make fields visible if a taxonomy reference field has one specific term. the taxonomy reference field uses shs. are there any solutions for this problem?
Comment #11
stborchertAh ok, now I see. Using an SHS-enabled field as dependee does not work. It seems as Conditional fields couldn't get the fields type even its technically a simple select.
I will have a deeper look onto it and try to fix this.
Comment #12
stborchertAfter digging deeper into the code I guess this is an issue of Conditional Fields.
If a field (in this case a select element) is located in a nested array, Conditional Fields is not able to load its data correctly,
There is already a comment (line 285 in conditional_fields.module, function conditional_fields_element_after_build() which adds a todo related to this issue.
Maybe I can provide a patch later so this works even with nested fields.
Just for the reference: the field created by SHS is nested within the following structure:
$element[LANGUAGE_UND][0]['tid']Comment #13
quironhi folks!
I solved this problem with this hack module, to replicate de shs into checkbox buttons, and syncr the values of both.
https://github.com/ictineo/drupal-sync-taxo-fields
I hope will be helpful
Comment #13.0
quironUpdated issue summary.
Comment #14
Artemrrr commentedwaiting patch stBorchert!!!
Comment #15
MLSatya commentedSame awaiting the patch from StBorchert. Please. thanks. ps - awesome work.
Comment #16
doppel commentedAlso waiting for the patch
Comment #17
tanvirahmad commentedLooking for the patch.
Comment #18
Mirkozzo commentedpatch pls
Comment #19
athaller commentedneed patch as well -- is broken using #access = 'false' in a custom module as well
Comment #20
mvonfrie commentedIt is not working the other way as well. I have a SHS term reference field (multiple) which I want to show only when a checkbox is checked. But it doesn't hide when I uncheck the checkbox.
Comment #21
ramil g commentedFor anyone interested, here's a patch that does this:
https://www.drupal.org/project/conditional_fields/issues/3399173
This is for the 4.x version (Drupal 9 & 10)