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 Not Working On 2nd Page

  1. Hello,

    I'm working on building a complex form with videos that display based on conditional logic.

    Basically we are building a bike builder.

    THere will be multiple pages on the form each discussing a single option for the bike.

    The conditional logic on page one of the form is working as expected, showing and hiding the appropriate HTML blocks based on selections.

    On page 2 of the form, the conditional logic doens't work at all.

    All of the HTML blocks show regardless of which option is selected.

    Also, everytime I check the conditional logic on the edit form screen, the form has reset the conditional logic to some default... and not what I've set it to. It seems to change it back to the default when I click save.

    Here is the form:
    http://www.electricbikesla.com.php53-27.dfw1-2.websitetestlink.com/custom-brompton-configurator

    I can get login details if needed, so you can see the strange behavior with conditional logic on saving.

    Posted 12 years ago on Monday July 2, 2012 | Permalink
  2. I see what you mean on page 2.

    It sounds like that's related to you being unable to save the conditional logic in the form builder. With a complex form you might run into resource issues, possible PHP RAM. How much RAM is allowed to PHP and WordPress?

    You could also have a security plugin like suhosin which is causing trouble for you. Do you have access to phpinfo() for this site?

    Finally, you might have to check for theme or plugin conflicts. Those can cause trouble with the form builder as well. http://rkt.gs/testing

    Posted 12 years ago on Tuesday July 3, 2012 | Permalink
  3. Hey Chris,

    Here is the PHPInfo:
    http://www.electricbikesla.com.php53-27.dfw1-2.websitetestlink.com/phpinfo.php

    It says it has 128MB of ram. Should I increase this?

    I do have a security plugin, bulletproofsecurity. I'll disable it and reset the htaccess files to see how that goes.

    I'll check back after I test any potential plugin conflicts.

    Posted 12 years ago on Tuesday July 3, 2012 | Permalink
  4. 128MB of RAM should be enough and should not be causing this trouble.

    Also, do you have access to PHP error logs? That might provide a clue as well.

    Posted 12 years ago on Tuesday July 3, 2012 | Permalink
  5. "This server is protected with the Suhosin Patch 0.9.10"

    That can be a problem as well.

    Don't forget to remove the phpinfo.php file once you're done.

    Posted 12 years ago on Tuesday July 3, 2012 | Permalink
  6. Hey Chris,

    I've went ahead and deactivated all of the plugins and enabled the 2011 theme. The problem persists.

    I shot a quick jing video showing how the conditional logic is saving strangely:
    http://screencast.com/t/e7WJzZGCytL

    I will remove the phpinfo.php now and I'll check with my host to see if I can disable that Suhosin Patch for testing. I'll let you know.

    I do have the PHP error logs. They are blank except for some errors related to deactivating cart66. Nothing related to gravity forms or otherwise.

    Posted 12 years ago on Tuesday July 3, 2012 | Permalink
  7. Okay, I've removed PHPInfo and checked with hosting support. They cannot disable Suhosin Patch 0.9.10.

    I await your further guidance as to what to try next.

    Posted 12 years ago on Tuesday July 3, 2012 | Permalink
  8. Thanks for the video.

    Can you export this form as XML and email it to me at chris@rocketgenius.com please? Thanks

    Posted 12 years ago on Tuesday July 3, 2012 | Permalink
  9. Also, do you have access to PHP error logs?

    Posted 12 years ago on Wednesday July 4, 2012 | Permalink
  10. Hey Chris,

    Email has been sent.

    Sorry for the delay, wasn't in the office over the 4th.

    Posted 12 years ago on Thursday July 5, 2012 | Permalink
  11. I have your email and will take a look at it on Friday July 6. Thank you.

    Posted 12 years ago on Friday July 6, 2012 | Permalink
  12. Okay. Thanks Chris!

    Posted 12 years ago on Friday July 6, 2012 | Permalink
  13. Looks like you have some invalid xHTML which may be messing things up. I emailed you separately. Please correct the invalid XHTML and we'll take another look.

    Posted 12 years ago on Friday July 6, 2012 | Permalink
  14. Thank you for fixing the invalid XHTML.

    It has nothing to do with being multi-page. I removed the page break and the problem persisted.

    The problem is due to you enabling values for the gearing choices, but the values are the same for all three single speeds (you used a value of 1 for all 3.) You need to have a different value for each of those options and the form will work fine. Be sure after changing your values you change the conditional logic to reflect the new values (you have to update the fields with conditional logic after you update the drop down select box.)

    Change the values so they are all unique. Screenshot http://minus.com/mbesBrJZP/

    Posted 12 years ago on Monday July 9, 2012 | Permalink