when I use ajax pages, that removes the conditional rules

CommentFileSizeAuthor
#5 move_object_creation.patch1.5 KBbear_beavis

Comments

tedbow’s picture

Please be more specific. by "Ajax pages" what exactly are you refering to? The more detail about your set up the better

Please read this first: http://drupal.org/node/73179

Thanks

gecho’s picture

Sorry.

I am using the module Webfom ajax page. When I create a "Ajax page" I can not add conditions to any of its components.

Thanks

tedbow’s picture

Priority: Normal » Minor

Sorry, demoting this to minor priority b/c deals other contribute module. Have to focus time on making sure it works with core Webform first.

swentel’s picture

Been bitten by this as well. ajax.js reattaches all behaviors (but apparently 3 times), and somehow the "var changeFunction = function() {" isn't called anymore after such a refresh. Trying to debug some more.

I'm using the ajax submit from this sandbox: http://drupal.org/sandbox/alex.designworks/1446550 (but I guess it's the same principle of ajax page).

bear_beavis’s picture

StatusFileSize
new1.5 KB

Hi, i got the same issue with version 6.x-1.0, using my own ajax code.

It seems that the issue is about objects being created outside behavior code.

I've made a patch against 6.x-1.0 webform_conditional.js to solve this issue.

tedbow’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Active » Fixed

@bear_beavis, thanks for the patch. I committed this to 6.x dev branch

btw - you may want to check out http://drupal.org/node/707484 for recommendations for patch naming. Just makes it easier for project maintainers. Thanks again.

tedbow’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Fixed » Needs review

I also committed this 7.x dev branch. If someone who is having this problem in 7 can please test.

Here is the direct link to update module: http://drupalcode.org/project/webform_conditional.git/snapshot/aaff3159b...

swentel’s picture

Status: Needs review » Fixed

Works perfectly for 7.x as well, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.