PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

(Broken) Conditional Logic & Custom Form Elements

  1. Here's a link to the form in question: http://arisehub.org/form-test/

    We styled the radio buttons using a JS script called Custom Form Elements.
    Here it is: http://arisehub.org/wp-content/themes/arise/js/custom-form-elements.js

    When that is disabled, the conditional logic works fine. When it is enabled (as it is currently), the conditional logic doesn't fire.

    Any ideas/suggestions as to what the conflict might be?

    Posted 13 years ago on Wednesday April 6, 2011 | Permalink
  2. It's going to be with however that Javascript executes interfering with our Javascript, but you already know that. What I would do is compare the input buttons with and without that Javascript implemented using Firebug for FireFox and then see how they differ. The problem is it could be changing it via Javascript so it may not be readily apparent, so use the cose inspector in Firebug to look at it and compare it, hopefully it will show the difference.

    Posted 13 years ago on Wednesday April 6, 2011 | Permalink
  3. Conditional fields are also very broken on my site. I've looked through all the possible plugin conflicts and can't find anything. We're using a child theme of 2010 with very minimal style changes and nothing else. Firebug doesn't report any JS errors.

    When I had two text input fields depending on the same checkbox, neither would show. I switched to one paragraph input instead, and I could get it to show in Firefox 3/Mac, but not in Safari. My IE user (no idea which version; she can't figure it out) reported in both cases that she could not get the conditional fields to show.

    This became apparent at 5pm on a day when I'm leaving for a conference, so we have a BIG problem, and I'm not going to be around to answer any follow-up questions until Monday. Sorry.

    Posted 13 years ago on Wednesday April 6, 2011 | Permalink
  4. @sleary We can't debug anything with at a minimum a link to a page on the site having the problem so we can take a look. Issues with conditional logic not working are always 1) A Javascript error existing on the page or 2) The theme isn't enqueuing scripts properly.

    Posted 13 years ago on Thursday April 7, 2011 | Permalink