I get this everytime I apply a dependency on my form(content type) fields.

Notice: Undefined index: value in conditional_fields_states_handler_text() (line 967 of /opt/bitnami/apps/drupal/htdocs/sites/all/modules/conditional_fields/conditional_fields.module).

I have no idea how to solve this and I can't find a similar issue on the net.

Thank you in advance!

Comments

ejaboneta-1’s picture

I'm new to drupal and not much of an expert programmer so I can't provide a patch or guarantee its a proper fix, but this is how I fixed a similar problem...

In conditional_fields.module on line 992, change $value['value'] to $value['tid']

ejaboneta-1’s picture

Maybe I shouldn't be giving advice like that. But what I've noticed is that the module is looking for a $options[value][0][value] in each dependee's options thats not in the options in the conditional_fields table. All that is there is the "tid" ($options[value][0][tid]) value of the dependent field. Should there be a "value" variable also or should it be "tid"?

peterpoe’s picture

Status: Active » Fixed

Have you tried the a more recent dev? Your problem has probably been long fixed. Feel free to reopen if this is not the case!
By the way: which modules/field types/widgets are you using that has a "tid" index?

Status: Fixed » Closed (fixed)

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

Courtney.B’s picture

Status: Closed (fixed) » Active

Just installed dev version from November 12, 2012 and I can confirm that this message is still appearing.

Please let me know if you need further information — I would be more than happy to provide it.

EDIT:

How do I find out which modules/field types/widgets use the "tid" index?

I'm not doing anything fancy with the fields. I'm using a list field as a dependee (radio) that controls which dependent fields are displayed. The dependent fields are: image field, video field (using video embed module), and a quote + quote source fields (so just basic text fields).

Courtney.B’s picture

Status: Active » Closed (fixed)

Disregard! I misread the error message originally posted. Closing this issue and will look to see if my particular issue was reported elsewhere.

My apologies!