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 shortcode: range of values

  1. Is it possible for conditional shortcode in a confirmation message to be dependent upon a range of values? For example, if you can create a confirmation message based on a single value (which you can of course do):

    [gravityforms action="conditional" merge_tag="{merge_tag}" condition="is" value="3"]
    Content you would like to conditionally display.
    [/gravityforms]

    where 3 is the single value, is it also possible to use the above code for a range of values? e.g. 3-6

    I will be using values from 0-20 and I want to create confirmation messages for the following value groups: 0-4, 5-9, 10-13, 14-19, 20. greater_than and less_than only apply to the first and last of these groups.

    Posted 11 years ago on Friday December 21, 2012 | Permalink
  2. David Peralty

    Unfortunately not. There are only the following conditional comparison options: is, isnot, greater_than, less_than, contains, starts_with, ends_with.

    So you'll have to use the is one for each of the middle option values you want to compare against.

    Posted 11 years ago on Friday December 21, 2012 | Permalink
  3. less_than ISN'T WORKING for me? Why is that - can I get some support please. I did pay for a developer license and have been waiting for help for 3 days.

    Posted 11 years ago on Tuesday April 23, 2013 | Permalink