Closed (duplicate)
Project:
Conditional Fields
Version:
6.x-2.x-dev
Component:
Compatibility w/ other modules
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2010 at 22:28 UTC
Updated:
5 Apr 2011 at 18:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
Jānis Bebrītis commentedsubscribe,
this is very essential!
Comment #2
Jānis Bebrītis commentedI see, author wanted to implement better way of modifying fields using #after_build
I don't know why, whether it gets rewritten by some other module (I searched for after_build in all contrib modules i had on site, but didn't find any) or it just doesn't work for me for some particular reason.
I changed that function so that it modifies fields right away (like it was done in 6.x-1.1)
.. and it works for me (at least I didn't notice any problems with it yet)
anyway - further investigation is needed on this
Comment #3
nicholas.alipaz commentedJust thought I would jump in and say this affects me too. I would really like to see this work.
Comment #4
nicholas.alipaz commentedAnother note, testing out Jancis fix does work.
Comment #5
joostvdl commentedI tested the solution in #2 in the 2.0-beta1 version and it works fine
Comment #6
jonhattanI'd say the oposite: «content_profile_registration not compatible with latest 2.x-dev of conditional_fields».
Please review this one: #826126: Add in #after_build callbacks to $form.
Comment #7
JThan commented#2 worked for me. The patch in the other issue mentioned in #6 did not help.
Comment #8
Jānis Bebrītis commentedOkay, collegue of mine ( artis.bajars ) discovered that my method (#2) breaks validation. He used patch mentioned (#6) and it works now.
Comment #9
murias commentedPatch mentioned up in #6 worked well for me.
Comment #10
jjwhitney commentedConditional Fields will only work for fields in the first Content Profile type (when you're using more than one Content Profile type per role) on Registration pages. None of these patches will fix this issue.
In the "conditional_fields.module" file, find this line:
$type_name = $form['type']['#value'];. The first Content Profile type is the form's "type". The correct fix would probably involve setting$type_names = array_keys($form["#content_profile_registration_use_types"]);(when that value exists) and use that in the function, instead of the single-valued $type_name.Is there anyone who would like to make a patch? Or test one if I make it?
Comment #11
JThan commentedYes. I need that patch. I am willing to test.
Comment #12
jjwhitney commentedGreat! Just apply this patch to conditional_fields / 6.x-2.x-dev / 2010-Jul-11.
I've only tested this on my website, so I'm interested in finding out if it solves your problem, too.
The one thing I didn't bother to support is having different animation options (type and speed) for each content profile. The first content profile with conditional fields will determine which animation options are used.
Comment #13
JThan commentedHi. Sorry just saw your answer. I will test today or tomorrow. I will report asap.
Comment #14
JThan commentedHello.
Did not work for me. No difference at all.
JThan
Comment #15
jjwhitney commentedSorry it didn't help. It really only covers the case where there are multiple content profiles on the registration page. If you're doing that, you'll probably need this patch in addition to one of the others. (Or might it be a cache problem?) The people who need this patch probably don't know how to find it, so I hope the Conditional Fields development team at least takes a look to see if they can use it. (Or create their own fix.)
Comment #16
JThan commentedBut that is what I have: Multiple Content Profiles on one registration page. On a page just for the one content profile conditional fields does it work, but not on the one with multiple content profiles. It was working some time ago before some updates, but I couldnt manage to go back to that state.
Comment #17
abaddon commentedi wonder if this is not a duplicate of http://drupal.org/node/619290 , should be set as so if it is and continue there
Comment #18
jjwhitney commentedI tried your patch, abaddon. It works fine for me and looks cleaner than my solution. Thanks.
Comment #19
dafederPatch works for me!
Comment #20
murias commentedPatch working here also.
Maybe it could get committed?
Comment #21
deggertsen commentedThis appears to be a duplicate of #619290: Make Conditional Fields compatible with Content Profile module. I'm marking it as a duplicate so nobody else gets confused. If there is indeed a difference then please reopen.