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.

Compound Conditional Logic

  1. blafarmm
    Member

    Is it possible to create conditional logic that uses both "Any" and "All"?

    Here's my problem:

    1. I have a checkbox that allows clients to select an option.
    2. If they select that checkbox -- a pulldown item appears that offers 4 other options.
    3. If they select any of those 4 options -- a different grouping of "last" options appear.

    However, if they spontaneously decide to deselect the original checkbox at the last moment -- all of the last "option groupings" still persist on the form. That's because, their first pulldown selection (#2 above) -- may be still "selected" -- even though it is now invisible because the checkbox was deselected.

    So, I think I need some sort of "compound" conditional logic that says:

    __________________________________
    If #1 is true...

    AND

    Any of the 4 items from #2 are true...

    Then display the appropriate options in #3.
    __________________________________

    This type of conditional logic would cause the last options in #3 to disappear if the original checkbox in #1 was deselected at the last moment. As it is currently structured, I cannot accomplish this because the conditional logic is globally "Any" or "All".

    I hope that makes sense.

    Thanks in advance for your assistance.

    Posted 14 years ago on Thursday May 27, 2010 | Permalink
  2. blafarmm
    Member

    My apologies...but "Bump"

    Posted 14 years ago on Thursday June 3, 2010 | Permalink
  3. What if you entered a blank value to the second drop down, so that you would have your 4 original options plus a blank one.
    If you can do that, then you can setup your conditional for the group as follows

    If #1 is true
    AND
    drop down is not blank

    Posted 14 years ago on Thursday June 3, 2010 | Permalink
  4. blafarmm
    Member

    Thanks for your post Alex.

    That's a very good suggestion -- but unfortunately I cannot use that approach because I already have multiple "Conditional Rules" in my "Standard Fields" that use the "Any" argument.

    My problem is that the "Conditional Logic", as currently structured, is one-dimensional. You can use the "Any" argument -- or you can use the "All" argument -- but you cannot structure the Conditional Logic to use both simultaneously.

    For example...

    Starting with "Any" arguments:

    -------------------

    If A = X or...
    If A = Y or...
    If A = Z

    AND...

    If A ≠ E

    Then Display this Field

    -------------------

    This type of Conditional Logic requires the use of "Any" and "All" arguments at the same time. Similar to "stacking" filters for sorting data or rules creation.

    Does that make sense?

    Posted 14 years ago on Thursday June 3, 2010 | Permalink
  5. Yes it makes sense, but unfortunately it isn't how conditional logic currently works. We will look at it and see what changes we can make to conditional logic so that you can do both. No guarantees as to when it would be available but we will look into it.

    Posted 14 years ago on Thursday June 3, 2010 | Permalink
  6. blafarmm
    Member

    Hi Carl,

    Would it be possible for me to provide you with a login to find out whether or not there might be a better way for me to structure my conditional logic?

    I have a nagging feeling that there might be a simple solution that I am overlooking.

    Thanks

    Posted 14 years ago on Thursday June 3, 2010 | Permalink
  7. There is no need to send a login, we will try reproducing it on our end first. It's not supposed to store values of conditional logic fields that are not displayed, however it may be doing it if they are displayed and selected and then hidden again. We will check it out locally.

    Posted 14 years ago on Thursday June 3, 2010 | Permalink
  8. blafarmm
    Member

    Thanks Carl.

    I look forward to your results.

    If necessary, I can post a very simple set of instructions that will create a very short form that will replicate my findings.

    Posted 14 years ago on Friday June 4, 2010 | Permalink
  9. blafarmm
    Member

    By any chance, is there any update on this?
    Sorry for seeming impatient.
    I was hoping to go "live" with my page at the end of the week.
    And, was hoping to solve this issue beforehand.

    As mentioned, I be happy to supply a "published" page that has this problem...
    Or a login to my installation.

    Thanks very much.

    Posted 14 years ago on Monday June 7, 2010 | Permalink
  10. I am able to reproduce this issue locally, however I don't know when we will be able to release some sort of fix. The logic is actually working as intended. It may not be as you intended or how you want it to work, but the issue is the last options are still visible because nothing has told them not to be hidden. By changing the drop down selection it doesn't have control over the last options because they aren't tied together.

    We do plan on enhancing conditional logic in the future and can look at making it's capabilities more intelligent, however right now there isn't anything we can do to anticipate users changing selections after they have already made them in situations where you have very deep conditional logic relationships.

    Posted 14 years ago on Monday June 7, 2010 | Permalink
  11. blafarmm
    Member

    I hear what you are saying. That makes sense.

    I guess I was hoping that the Conditional Logic would work the same way that the "Required" button worked. With the "Required" button -- if a field isn't displayed due to its Conditional Logic state -- then that field isn't "required" by the user during the completion process -- even if the button is selected.

    Here's an off-the-cuff thought (although I'm sure it's easier said than done):

    I wonder if it would be possible to create a button that engages a fairly simple argument:

    "A field will not be displayed -- unless the field it is conditionally related to -- is displayed as well".

    That approach would seem to simplify the process of enhancing the conditional logic without incorporating complex intelligence.

    Just a thought.

    Posted 14 years ago on Tuesday June 8, 2010 | Permalink