-D5.7
-CCK 5.x-1.7
-Dependent 5.x-1.3-beta
-multiple radio button dependent field
One dependent field option is set as default. When the new content page initially opens the controlled fields are not hidden. When another radio option is selected and then the dependent option is toggled back on, the controlled fields are then hidden.
I'm assuming that if the option used as the dependent field is set as the default selection in the content type configuration the controlled fields should be hidden when the create content page initially opens. Is this correct and there is a bug or am I doing something incorrectly?
Thanks,
Doug
Comment | File | Size | Author |
---|---|---|---|
#4 | display_test_daf.txt | 4.03 KB | WiredEscape |
Comments
Comment #1
Tamar Badichi-Levy CreditAttribution: Tamar Badichi-Levy commentedThank you for your question.
When the creation page is opened the fields should be hidden according to the default values you have selected. The same thing happens when you are editing a form. If a field is not hidden/shown as expected it is a bug.
Please export the cck type so I'll be able to check it.
Comment #2
WiredEscape CreditAttribution: WiredEscape commentedThank you for answering!
Sorry, but not sure how to export cck type. Please explain and will do. Capable but not that familiar with Drupal...
Comment #3
Tamar Badichi-Levy CreditAttribution: Tamar Badichi-Levy commentedNo problem,
Just go to "admin/content/types/export" proceed from there.
Best regards, Ofir.
Comment #4
WiredEscape CreditAttribution: WiredEscape commentedThanks Ofir,
Had to enable Content Copy in CCK section of Module configuration options for export/import options to be available.
Tested dependent fields again with a number of different combinations of field types and with and without groups. Fails to work on initial opening of page in all situations.
Here is the export.
Regards,
Doug
Comment #5
Tamar Badichi-Levy CreditAttribution: Tamar Badichi-Levy commentedSorry for not being around for a while.
I'm not able to import you cck type. I get the error:
Do you know what might be the problem?
Comment #6
Tim Chan CreditAttribution: Tim Chan commentedThe problem should be caused by jQuery as I've solved it by updating jQuery.js to version 1.26.
There is a discussion about updating jQuery: http://drupal.org/node/256285#comment-857924
Comment #7
WiredEscape CreditAttribution: WiredEscape commentedThanks Tim,
I can confirm that updating jQuery solved this issue for me. Went from jQuery 5.x-1.0 to 5.x-2.x-dev. Did not try latest copy of jQuery 5.x-1.0 so not sure if changes have been made there.
http://drupal.org/project/jquery_update
I was suspicious that something other than 'Dependent fields' was causing the problem when I noticed that fields within Drupal Admin pages were also experiencing show/hide problem. Had recently started to work through isolating the bug when your posting appeared.
I'll mark this issue as closed. Others, please reopen if this fix doesn't work for you.
Doug