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.

conditional logic makes form disappear

  1. OMJS
    Member

    First Gravity Forms is definitely the best form manager we tested!

    But somehow we could not manage to get the Conditional logic working on two of our websites. The form disappears after activating it in whatever field in the form. The form preview does not show anything as well. We tried deactivating the plugins that were using javascript to prevent conflicts but this does not resolve anything.

    A test form including conditional logic is located here: http://www.onderwijsmaakjesamen.nl/actueel/testform/

    I hope you can help us out?

    Posted 7 years ago on Thursday July 12, 2012 | Permalink
  2. Timestamp: 7/12/2012 7:37:54 AM
    Error: syntax error
    Source File: http://www.onderwijsmaakjesamen.nl/actueel/testform/
    Line: 467, Column: 3
    Source Code:
       }

    You have a JavaScript error preventing jQuery from working and that prevents a form with conditional logic from showing.

    The error is in this script:

    [js]
    <script language="javascript">
    
    			function CheckMultiple1(frm, name) {
    				for (var i=0; i < frm.length; i++)
    				http://www.onderwijsmaakjesamen.nl/wp-content/themes/omjs 2.3				return false;
    			}
    		function CheckForm1(f) {
    			if (f.email.value == "") {
    				alert("Please enter your email address.");
    				f.email.focus();
    				return false;
    			}
    
    				return true;
    			};
    
    </script>

    Line 467 is this one:

    http://www.onderwijsmaakjesamen.nl/wp-content/themes/omjs 2.3				return false;
    			}

    Fix that and any other JavaScript errors and your form should display fine.

    Posted 7 years ago on Thursday July 12, 2012 | Permalink
  3. Sorry, the links are sometimes messed up when posting in the forum, and the nofollow stuff is added. Check the source of the page you linked, and find line 467 and you will see where the syntax error occurs.

    Posted 7 years ago on Thursday July 12, 2012 | Permalink
  4. OMJS
    Member

    Thanks for your response. I commented out these lines, but still no form.

    But in the preview of the Gravity forms the form doesn't show either. And there I do not have any code like this present...

    Posted 7 years ago on Thursday July 12, 2012 | Permalink
  5. OMJS
    Member

    The Sexybookmarks plugin new-mode was the problem I guess, turned that mode off and it seems to work.

    I think I fixed it now. Thanks for the help!

    Posted 7 years ago on Thursday July 12, 2012 | Permalink
  6. David Peralty
    Administrator

    Let us know for sure after you've had some time to test things out.

    Posted 7 years ago on Thursday July 12, 2012 | Permalink
  7. OMJS
    Member

    In the end it seems it wasn't SexyBookmarks, it was a combination of jQuery scripts that were loaded together.

    So we decided to move these scripts from the header (throughout the site) to the template pages where they were called. So no conflicts could occur.

    Now all javascript errors are gone! Jeay!

    Posted 7 years ago on Thursday July 12, 2012 | Permalink
  8. David Peralty
    Administrator

    Congrats. That's exactly what you want for a properly functioning site. :)

    Posted 7 years ago on Thursday July 12, 2012 | Permalink

This topic has been resolved and has been closed to new replies.