I have 2 radio button fields that are both required.
The second field only displays when a specific option of the first is selected.
When I submit the form I get the following errors.
Warning: array_values() [function.array-values]: The argument should be an array in conditional_fields_evaluate_dependency() (line 874 of sites/all/modules/conditional_fields/conditional_fields.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | conditional_fields.module.patch | 570 bytes | coreykck |
Comments
Comment #1
aidanlis commentedSubscribe ... this happens on many of my forms.
Comment #2
aidanlis commented(Ohh forgot I don't have to subscribe any more!!)
Comment #3
Adel commentedSubscribing, aidanlis: why don't you have to follow anymore ? did you find some solution ?
Comment #4
coreykck commentedHi guys,
same problem, I've wrote a little patch attached here, but I don't have visibility on collaterals :)
I hope could help
Ciao
Comment #5
rooby commentedComment #6
aidanlis commented@Adel Don't have to write "subscribe" because there's a "Subsribe" button now.
Comment #7
deeciple commentedHi,
Thank you for the patch. I am getting the same error. I am fairly new to Drupal. can you help me with how to apply the patch?
Thank you,
:Dee
Comment #8
pixelsweatshop commenteddee, see http://drupal.org/node/707484
Comment #9
deeciple commentedThanks nicoz,
Patch applied successfully :)
This took care of the original error but I am getting the following:
Notice: Undefined index: #value in conditional_fields_required_dependent_validate() (line 625 of /home/content/18/8469318/html/drupal/sites/all/modules/conditional_fields/conditional_fields.module).
EDIT:
Got rid of the above error. I had selected value=1 as my dependee (checkbox) criteria. When I changed this to "is checked" the error went away.
:Dee
Comment #10
jackalope commentedPatch in #4 worked for me; thanks!
Comment #11
mordek commentedRelated to this i think #1301682: Problem with $dependency_values in conditional_fields_evaluate_dependency
Comment #12
mrfelton commentedPatch gets rid of the reported error, but causes the following for me:
Comment #13
rooby commented@mrfelton:
Can you give some information about your set-up, seeing as your issue is related to integration with another module that otheres here might not be using.
For example, how is your condition / list field set up.
Comment #14
earwax commentedSame problem here, except mine are select boxes that are marked as required
Comment #15
otmoroz095 commentedi have the same problem. And i can't see attached Image for node.
Comment #16
rooby commentedFor new people saying "same problem" or similar, can you please test the patch in #4 and report whether or not it fixes your problem.
If it doesn't then try to describe your problem with as much detail as possible. Then someone might be able to help fix the problem you are having.
@otmoroz095
What does this mean and how does it relate to this issue?
Comment #17
otmoroz095 commentedi don't know, but my field with attached image doesn't able to see, if conditional_fields show this error (Warning: array_values(): The argument should be an array). And my field with image don't depence on some another field.
I tried to apply path, but problem didn't solves.
Comment #18
Georgique commentedSubscribe
Comment #19
Shadlington commentedI'm also having this problem.
Patch in #4 fixes the error for me though.
Comment #20
clint.beacock commentedPatch in #4 fixed the error for me too.
Comment #21
j4 commentedPatch in #4 works fine for me too. Thank you!
Jaya
Comment #22
peterpoe commentedDuplicate of #1301682: Problem with $dependency_values in conditional_fields_evaluate_dependency.