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).

CommentFileSizeAuthor
#4 conditional_fields.module.patch570 bytescoreykck

Comments

aidanlis’s picture

Subscribe ... this happens on many of my forms.

aidanlis’s picture

(Ohh forgot I don't have to subscribe any more!!)

Adel’s picture

Subscribing, aidanlis: why don't you have to follow anymore ? did you find some solution ?

coreykck’s picture

StatusFileSize
new570 bytes

Hi guys,
same problem, I've wrote a little patch attached here, but I don't have visibility on collaterals :)
I hope could help
Ciao

rooby’s picture

Status: Active » Needs review
aidanlis’s picture

@Adel Don't have to write "subscribe" because there's a "Subsribe" button now.

deeciple’s picture

Hi,

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

pixelsweatshop’s picture

deeciple’s picture

Thanks 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

jackalope’s picture

Patch in #4 worked for me; thanks!

mordek’s picture

mrfelton’s picture

Status: Needs review » Needs work

Patch gets rid of the reported error, but causes the following for me:

Notice: Uninitialized string offset: 0 in list_field_is_empty() (line 393 of modules/field/modules/list/list.module).

rooby’s picture

@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.

earwax’s picture

Same problem here, except mine are select boxes that are marked as required

otmoroz095’s picture

i have the same problem. And i can't see attached Image for node.

rooby’s picture

For 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

And i can't see attached Image for node.

What does this mean and how does it relate to this issue?

otmoroz095’s picture

i 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.

Georgique’s picture

Subscribe

Shadlington’s picture

I'm also having this problem.
Patch in #4 fixes the error for me though.

clint.beacock’s picture

Patch in #4 fixed the error for me too.

j4’s picture

Patch in #4 works fine for me too. Thank you!

Jaya

peterpoe’s picture

Status: Needs work » Closed (duplicate)