While I can get conditional fields to work with user profiles in general, the rules do not seem to affect the fields when on the initial, anonymous user registration form. However, after an account has been created, and a user wishes to edit their profile, the field rules appear to work fine.

Steps to repeat:
1) create 2 list fields in Config->Account Settings->Manage Fields (field A and field B), create available options for each (yes and no ), make the defaults both "No"
2) Under Manage Dependencies, set 'dependent' to field B, set 'dependee' to field A
3) "the dependent field is" invisible when the dependee has a value "no"
4) Check that the behavior works when you edit your own profile (in my case -yes!)
5) Check that the bahavior works on the registration page when you try to create a new account (in my case - no). This appears to be the case whether or not I select "Display on user registration form." when setting up the field.

I have read this V6 thread, but don't know how much of it is related:http://drupal.org/node/373954
Interestingly, it does work normally, even for anonymous users on profile 2 fields.

Thanks

Comments

llorberb’s picture

+1 I have the same issue

tommychris’s picture

This issue is still active and really annoying, somebody maybe fix it.

tommychris’s picture

Priority: Normal » Critical
UN Web Services’s picture

+1
urgently need this fix !
otherwise module is an absolute wonder.

peterpoe’s picture

Status: Active » Fixed

Working for me in the latest dev... Looks like this was fixed as a side-effect of some recent commit.

scotwith1t’s picture

i can confirm it's working great on user registration page now and this is getting really close to a stable d7 version!

scotwith1t’s picture

Status: Fixed » Closed (fixed)

is it ok to close if I see it's working fine? if not, sorry to overstep that line!

digitopo’s picture

Status: Closed (fixed) » Active

I'm using Conditional Fields version 7.x-3.x-dev from 2012-05-05, in conjunction with Profile2 and Profile2 Registration Path modules and the conditional fields are not working properly on the user registration pages.

They do work fine when I'm logged in as the admin user, but apparently not for anonymous users who are trying to register.

I have a dropdown with 4 options, one of the options triggers a new field (the "other" fill in text field) and instead of hiding the other field, the form displays 2 versions of the same field, one without the hidden field and below one with the hidden field.

I know it is supposed to be fixed but I just updated to the newest version and still not working.

digitopo’s picture

Any word on why this is happening?

possibly related to : http://drupal.org/node/1315366

peterpoe’s picture

Status: Fixed » Closed (fixed)

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

fernly’s picture

Issue summary: View changes
Status: Closed (fixed) » Active

This issue is still appearing, both on the alpha1 and latest dev. The conditional fields work perfectly on the user profile form, but not on the registration form (and thus when anonymous). In the first place misc/states.js is not getting loaded and generates an error. But even when forcing this js file to load and the javascript errors disappear, the conditional fields are not doing anything (field should appear when checkbox is checked).
For now, I'm falling back to the good old form alter.

Apart from this, nice module.

fernly’s picture

Version: 7.x-3.x-dev » 7.x-3.0-alpha1
Status: Active » Fixed

My bad :) it works (alpha1).

Cheers

Status: Fixed » Closed (fixed)

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

Dillibabu’s picture

Still i'm facing this issue in drupal 8. Any one posted patch for this?

brooke_heaton’s picture

Yea, not working on D8 :/.

ahmed.raza’s picture

Not working in Drupal 8, any fix? :/

kris77’s picture

Same issue too in DRUPAL8...not working on registration form when admin create an account.