Drupal 6 Port
shawngo - April 1, 2009 - 13:37
| Project: | Form Dependencies |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | teezee |
| Status: | active |
Description
Is anyone working on a Drupal 6 port for Form Dependencies? Or, is there a way to create dependencies in Drupal 6 where this module is no longer needed? I'm currently working on a port and am wondering if it would benefit anyone.
Shanwn

#1
Need this module for Drupal 6 desperately.
#2
Same here. Need this module for Drupal 6 desperately. Who can port this?
#3
This is a "use at your own risk" port :)
This may not contain all the functionality you're looking for, but that might be what it takes to take this module to the next level.
With that said, enjoy.
Shawn
#4
Going to work on D6 and D7 versions starting this weekend. @shawngo Good job on the port, I'll probably use everything except the debug stuff
#5
Thanks :)
I don't know why I left the debug code in there. I also ported the Webform Dependencies module about as far as I needed to. Were there other features that you had intended on adding? We have a project in-house that needs to go a step further in adding more granular dependencies on the field values.
Shawn
#6
Well, that's exactly what the next step will entail. It should be possible to set (per element) which value the dependency applies to. Problem in implementing was that:
- The behaviour must be exactly the same in JavaSscript and PHP (must be able to degrade)
- Must work on '#type' => 'checkbox' and '#type' => 'checkboxes' which have a difficult way of comparing, every 'checkboxes' element creates x 'checkbox'-es but the output is somewhat different
I'm planning to move that to the next release for 6, but if you have any ideas and/or working examples please share!