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 survey: earning points per answer, show test result p/person

  1. Hi!

    I'm building a survey.

    All questions have 'closed' radio button questions, per answer points can be earned. So A=1 point, B=3 points, C=0 points.

    How do I show at the end of the survey what the score is of that person? Can this be done with Conditional Logic? Can I add values to the answers and calculate the sum, then show a message when someone has 0-9 points, 10-15 points, etc.

    Posted 11 years ago on Friday February 15, 2013 | Permalink
  2. You can do this with a number field set to calculation enabled. You would enable values on your radio field and place the unique values per answer/label. Then add a number field to your form that calculates this by adding up all of the field answers together. You could then hide this field by either CSS using visibility: hidden or possibly even setting the field to admin only.

    Then, upon submission, you could use conditional shortcodes to display the proper score/confirmation message based on that calculated number field.

    http://www.gravityhelp.com/documentation/page/Shortcodes

    Posted 11 years ago on Friday February 15, 2013 | Permalink
  3. Thanks! This is super helpful and just what I was looking for.
    Is it possible to have multiple conditions in each shortcodes? Basically I want a shortcode to output specific content for 3 different value ranges. 0-6, 6-12, 12-18.

    My first looks like this..

    [gravityforms action="conditional" merge_tag="{Number:4}" condition="less_than" value="6"]
    Content for first group
    [/gravityforms]

    The Second

    [gravityforms action="conditional" merge_tag="{Number:4}" condition="greater_than" value="6"]
    Content for second Group
    [/gravityforms]

    The Third

    [gravityforms action="conditional" merge_tag="{Number:4}" condition="greater_than" value="12"]
    Content for 3rd group
    [/gravityforms]

    Obviously though, if they're answer is above 12 then they get output both content for group 2 and 3. Can I somehow set a condition like..

    condition="greater_than" value="6" + condition="less_than" value="12"

    Thanks for your help!

    Posted 11 years ago on Friday February 15, 2013 | Permalink
  4. David Peralty

    Unfortunately, there is no way to do this currently. Gravity Forms doesn't allow for multiple conditions.

    Posted 11 years ago on Friday February 15, 2013 | Permalink
  5. David,
    Thanks for your post. Close, but no Cigar! Thanks anyways.

    Posted 11 years ago on Friday February 15, 2013 | Permalink

This topic has been resolved and has been closed to new replies.