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

CommentFileSizeAuthor
#3 form_dependencies.tar.gz11.84 KBshawngo

Comments

AmitV-2’s picture

Need this module for Drupal 6 desperately.

ShaiHulud’s picture

Same here. Need this module for Drupal 6 desperately. Who can port this?

shawngo’s picture

StatusFileSize
new11.84 KB

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

teezee’s picture

Assigned: Unassigned » teezee

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

shawngo’s picture

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

teezee’s picture

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!

teezee’s picture

Status: Active » Closed (won't fix)

I think this will remain a won't fix as the CTools module has sort-of a plugin for this (http://drupal.org/project/ctools), but that one has some IE issues with eventlistener click on checkboxes.