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
Comment #1
llorberb commented+1 I have the same issue
Comment #2
tommychrisThis issue is still active and really annoying, somebody maybe fix it.
Comment #3
tommychrisComment #4
UN Web Services commented+1
urgently need this fix !
otherwise module is an absolute wonder.
Comment #5
peterpoe commentedWorking for me in the latest dev... Looks like this was fixed as a side-effect of some recent commit.
Comment #6
scotwith1ti can confirm it's working great on user registration page now and this is getting really close to a stable d7 version!
Comment #7
scotwith1tis it ok to close if I see it's working fine? if not, sorry to overstep that line!
Comment #8
digitopo commentedI'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.
Comment #9
digitopo commentedAny word on why this is happening?
possibly related to : http://drupal.org/node/1315366
Comment #10
peterpoe commentedThe original issue was solved. For the problem in #8, follow #1562760: Notice: Undefined index: und in conditional_fields_evaluate_dependencies() (line 1020 of /..../sites/all/modules/conditional.
Comment #12
fernly commentedThis 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.
Comment #13
fernly commentedMy bad :) it works (alpha1).
Cheers
Comment #15
Dillibabu commentedStill i'm facing this issue in drupal 8. Any one posted patch for this?
Comment #16
brooke_heaton commentedYea, not working on D8 :/.
Comment #17
ahmed.raza commentedNot working in Drupal 8, any fix? :/
Comment #18
kris77 commentedSame issue too in DRUPAL8...not working on registration form when admin create an account.