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.

Form with conditional logics not working in ie 7

  1. dcnmyers
    Member

    When viewing the form in IE 7 any form with conditional logistic not showing. Other browsers are fine. This is happening on more than one site. I have turned off all plugins and still no luck.

    http://www.louisvillemarketing.net/contact/
    http://www.louisvillehomeinspections.net/contact/

    Posted 6 years ago on Wednesday October 17, 2012 | Permalink
  2. In IE7, does the form work properly in the form preview? If so, it is likely a JavaScript or jQuery error causing the form not to display. Additionally, we do not officially support IE7. Please see here:
    http://www.gravityhelp.com/forums/topic/need-help-with-formatting-for-ie7#post-75104

    Posted 6 years ago on Thursday October 18, 2012 | Permalink
  3. dcnmyers
    Member

    Ok I tried turning off all plugins so it is not a Jquery conflict issue. I also show on the link above that IE7 is not support but here is the problem by default IE8 which is support is the compatibility mode and always most IE8 default to this which is IE7 so if you support IE8 then you have to support IE7. http://stackoverflow.com/questions/4457851/ie8-rendering-as-ie7-by-default

    Is there a way to have the conditional logic turn off automatically and just show all fields on older browsers like IE7?

    Posted 6 years ago on Thursday October 18, 2012 | Permalink
  4. I could not recreate this issue when using IE9 in IE7 mode. We no longer have IE7 around to test with. Here is a screenshot: http://grab.by/gR8U

    As far as turning off conditional logic when an older browser is detected, the conditional logic would not work like that. I think you can detect the browser when they land on your page, then display a form conditionally: one with conditional logic for modern browsers and the one without conditional logic for IE7. You would have to run that conditional statement after detecting the browser and before deciding which form to display. You could add the PHP code to your page template.

    Posted 6 years ago on Friday October 19, 2012 | Permalink
  5. carl@mapmagazine.com.au
    Member

    Our developer has worked out the issue with IE7 conditional logic, which may work for you.

    It's pretty straightforward - in js/conditional_logic.js there is a line inside the gf_apply_field_rule() function which looks like this:

    action = gf_check_field_rule(formId, fieldId, isInit, callback);

    It should instead look like this:

    var action = gf_check_field_rule(formId, fieldId, isInit, callback);

    That's all - some variable named "action" in IE7's global scope conflicts with this code.

    Posted 6 years ago on Monday January 21, 2013 | Permalink
  6. David Peralty
    Administrator

    Hi there, I'll let our development team know about what you've found. All my best!

    Posted 6 years ago on Monday January 21, 2013 | Permalink
  7. Thanks for all the troubleshooting! We will certainly make that change in our upcoming release.

    Posted 6 years ago on Monday January 21, 2013 | Permalink

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