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.

Complex and nested conditional logic

  1. UT RadOnc
    Member

    As recently as October 2012, I'm seeing references in the forums to a new feature for conditional logic involving complex or nested conditions. I'm not able to find this in the documentation though, and it doesn't seem to be available in the current version (1.6.11).

    What I'm looking to do is (as an example) to display a field if Q1=x AND [Q2=a OR Q2=b].

    I have tried to think of how to work around this, but can't find a way. Sometimes I can figure out a work-around, but that's always possible.

    Can you let me know if this is still a feature you expect to implement in the foreseeable future? If so, what's the anticipated roll-out for this?

    While I'm here talking about a wish-list for conditional logic, I'll add a couple of other feature requests. It would be very helpful to have a negative version of many of the current conditions. For example: NOT containing, NOT starting with, etc.

    Another feature I would find extremely useful is to be able to check for when a text field is left blank. It doesn't always work in all situations to test for a particular entry. In most cases, I've been able to do some rather complicated work-arounds, but some situations just won't work around. Having the ability to test if a text field is blank would allow much more flexibility and efficiency.

    Many thanks!

    Posted 11 years ago on Tuesday January 8, 2013 | Permalink
  2. UT RadOnc
    Member

    I'm not sure whether I should add this request for help to this thread or post it in the general forum, so apologies if it's in the wrong place. I can move it, if necessary.

    I need to find a workaround for this until nested conditions are available. I am creating a form where a section needs to display if A=true AND NOT[B-true AND C=false]. The C field will be either blank or begin with one of 3 specific text strings.

    Any ideas for a workaround for this? I've been wracking my brains but can't figure a way around this.

    I've created a test form so that what I'm trying to do will be clearer:
    http://www.radonc.utoronto.ca/test-page-for-forms

    Right now I have the section header line (at bottom) displaying without any conditions, but I need to be able to display that section only if:

    Status field = External (always)
    AND
    any Choice (with or without a promo code)
    BUT NOT if the Choice is A without a Promotional Code.

    Promo code should be blank (if none) OR begin with one of 3 text strings (which may or may not be followed by other characters). In trying to make this as idiot-proof as possible, I'd rather not start with a default value (e.g. "none") and test for that value (to see if there is no promo code), since the default value could be erased or changed, in which case it wouldn't be an accurate test. And since there's no way (that I know of) to test for a blank text field, I'm stuck testing only if the field starts with one of the 3 possibilities.

    One possible workaround I thought of, but can't figure out if I can do it, is to use a hidden (admin-only) field that would generate a value based on what the other field selections are? For example, to test if the promo code exists AND if the Choice is A. The resulting value of the hidden field could be checked in determining whether to display or hide the section at the bottom.

    Thank you for your help!

    Posted 11 years ago on Tuesday January 8, 2013 | Permalink