• Resolved scottjulian

    (@scottjulian)


    Hi There

    I have what i hope is a fairly basic requirement but i can’t for the life of me work out how to do it.

    I have a form with about 65 questions on it (don’t worry its a form people are willing to complete)

    For each of the questions there are up to 3 choices available.

    Each choice has a value of either A, B or C.

    At the end of the form I would like to be able to count up the number of A’s, B’s & C’s and present that in the form of

    eg: 17 A’s, 21 B’s, 12 C’s

    Does anyone know a straightforward way to do this?

    Thanks in advance

    Cheers

    Scott

    • This topic was modified 6 years, 6 months ago by scottjulian.
    • This topic was modified 6 years, 6 months ago by scottjulian.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author GravityWP

    (@gravitywp)

    You can’t use this shortcode for this.

    The simplest, most visible way to solve your problem is making 3 additional number fields for each question field with standard value 1. You can trigger if this additional (A B or C for question 1 for example) number field is ‘shown’ with conditional logic. At the end of your form you can than make 3 different number field calculations. Because of conditional logic it will only count the visible numbers (even if you hide it for the users themselves).

    Faster is to custome code something.
    For Gravity Forms related coding, check Codeable
    for good developers.

Viewing 1 replies (of 1 total)
  • The topic ‘Counting number of times a value appears in a form’ is closed to new replies.