Hello,

it would be great to have the possibility to choose the effect used to hide/show conditional form elements. Is there a way to achieve this?

thanks for helping me out with this! :)

Comments

etron770’s picture

Maybe it the same issue - I would need the possibility to use private fields for conditional. Now they will not be evaluated when hidden.

quicksketch’s picture

Issue summary: View changes

We could probably make this adjustable via the JavaScript on the page, though it probably isn't going to be an option we provide in the UI. The key lines in webform.js are these:

      if (showComponent) {
        $form.find('.' + ruleGroup['target']).find('.webform-conditional-disabled').removeAttr('disabled').removeClass('webform-conditional-disabled').end().show();
      }
      else {
        $form.find('.' + ruleGroup['target']).find(':input').attr('disabled', true).addClass('webform-conditional-disabled').end().hide();
      }

For now, perhaps it might be easiest to simply patch the module and keep track of the patch for your site. See http://www.jenlampton.com/blog/sustainable-development-workflow-patching.

DanChadwick’s picture

Status: Active » Closed (won't fix)

Closing for lack of demand. If someone really wants this, please reopen with a patch.