Support » Plugin: Gravity Forms Charts Reports » Filtering data depending on another question

  • Resolved academicdigital

    (@academicdigital)


    Is it possible to output only certain data from a question?

    For example:

    Question 1: what is your location? Options are A (London), B (Bristol) or C (New York)
    Question 2: what is your favourite drink? Options are A (Tea) or B (Coffee)

    How could I show a graph of how many results from Location A drink Option B etc?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author termel

    (@munger41)

    Hi @academicdigital !

    This is an interesting question.
    If i understand well, this could be done by adding a kind of correlation parameter that would output some count if the user answered 1.A AND 2.1, then 1.A AND 2.B, 1.B AND 1.A, 1.B AND 2.B, 1.C AND 2.A, 1.C AND 2.B, right ?
    So 6 series elements right ?

    Do i understand correctly ?

    Cheers

    Hi @munger41!

    Thanks for the quick response! Yes, in this example there would be 6 options.

    Maybe it could be based on the dropdown ‘values’? So you could filter [include “2, value 1=london”] or something?

    Plugin Author termel

    (@munger41)

    Ok, so i could add a parameter called filter letting you set something like “1=london” then another one filter_type specifying if you want an AND or an OR condition, just in case you have multiple conditions. It would be AND by default.
    Working on this and comming back to your as soon as possible.
    Cheers

    sounds brilliant – thanks!

    Plugin Author termel

    (@munger41)

    In fact, it’s much simpler, it already is possible with the custom_search_criteria parameter. Writing a post to detail it and sending it to you.
    Cheers

    Plugin Author termel

    (@munger41)

    Yes, I think so! I’ll have a play – thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Filtering data depending on another question’ is closed to new replies.