Since not all combinations of conditional fields and groups are possible (that is: fields inside controlled groups can only control or be controlled by fields in the same group), when a user tries to move a conditional field from a group or into a group, validation fails and a message is shown: "You can't change the parent group of a conditional field."
We could make the message more informative, and the error appear only when the move would actually cause problems.

A workaround is:
1) Clear the conditional settings of the field you want to move.
2) Move it.
3) Make the field conditional again.

Comments

fourmi4x’s picture

I confirm the bug.
Many thanks for the workaround !

HongPong’s picture

Title: Allow changing group of conditional fields » Allow changing group of conditional fields [Workaround]

Thanks this made life easier.

bserem’s picture

Since a had a field that controlled 97 other fields the above was not an option.

What I did and worked was even easier though:

  1. I disabled Conditional Fields (the module, from the modules page)
  2. moved my field under the fieldgroup
  3. enabled the module

and everything worked ;)

peterpoe’s picture

Title: Allow changing group of conditional fields [Workaround] » Be more permissive when validating the movement of conditinal fields between groups
Status: Active » Fixed

I just committed a fix to this. Now the error is thrown only when moving fields would actually cause a disallowed situation, and error is more informative.

Status: Fixed » Closed (fixed)

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