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 - Cant find variable: gf_apply_rules

  1. Hello,

    I'm using gforms in my jQuery mobile framework - and having 'ajax' enabled on all forms. I'm running about 5 forms and they all run amazing with no errors in iPhone safari console. I've deregisted the gforms CSS and the jQuery mobile CSS takes over perfect with a few tweaks.

    But I've just added a spanner in the works...

    I've added conditional logic in one of my forms - with the same 'ajax' true settings.

    It's only 2 conditional variables in place on 2 multiple choice fields.

    The form is very minimal - 3 fields overall, but with this conditional logic enabled, when I click the page button, the form page does not even load and this error appears.

    "JavaScript Error on Line 1
    undefined
    ReferenceError: Can't find variable: gf_apply_rules"

    I have tested the same form in my non-mobile theme - all works fine.

    I understand you have not designed gforms to natively work in jQuery Mobile framework - but any suggestions in why this is happening (because of conditional logic enabled) - would be very very helpful.

    Thanks in advance!

    Posted 9 years ago on Tuesday August 16, 2011 | Permalink
  2. Very strange. Can you post a link to the page so we can view it and inspect it on our end?

    Posted 9 years ago on Tuesday August 16, 2011 | Permalink
  3. [deleted at user's request]

    Posted 9 years ago on Wednesday August 17, 2011 | Permalink
  4. Have now duplicated same form but removed condition logic - see this link for paths to both forms for testing - http://example.com/mobile/wp/#category/events

    This is the actual page itself, but loads on desktop browser if you open straight from URL - http://example.com/mobile/wp/#events/subscribe-iphone-ical - But the conditional logic is not actually working.

    Can't access the page at all on iphone device - probably the same on other devices.

    I have switched so you can only see mobile theme now - but tested it on my non-mobile theme and works fine, which I guess it's nothing to do with gravityforms and is probably an error on my part - tho it's weird how all the other non conditional logic forms work ok.

    Thanks

    [links edited 9/5/2011]

    Posted 9 years ago on Wednesday August 17, 2011 | Permalink
  5. Any thoughts on this guys? Let me know if it's something that doesn't work with jqm and i'll revert back to not using conditional logic. Thanks

    Posted 9 years ago on Monday August 22, 2011 | Permalink
  6. The page you posted isn't accessible anymore so i'm assuming you changed it or reverted back to not using conditional logic. We haven't tested with JQM so it's certainly a possibility that it's not compatible with JQM.

    Posted 9 years ago on Monday August 22, 2011 | Permalink
  7. Sorry, see these links - have migrated out the wp folder

    View this link below on desktop
    http://example.com/mobile/events/subscribe-iphone-ical/

    This is JQM link - but throws the error Can't find variable: gf_apply_rules"
    http://example.com/mobile/#events/subscribe-iphone-ical/

    This is JQM link - with buttons leading to duplicate forms, one with CL and one without.
    http://example.com/mobile/#events/

    All JQM links have to viewed on the mobile devices.

    If it's something you can't see what the problem is then no worries but if you could let me know soon thanks.

    [links edited 9/5/2011]

    Posted 9 years ago on Tuesday August 23, 2011 | Permalink