# Simple Radio Button Count \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/simple-radio-button-count-resolved/3125>\
**Category:** Get Help\
**Tags:** custom, quiz, personality-quiz, frequency, count-answers\
**Created:** [October 29, 2019, 4:41pm UTC](https://community.gravityforms.com/t/simple-radio-button-count-resolved/3125 "2019-10-29T16:41:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGate](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/thegate/32/1122_2.png) [@TheGate](https://community.gravityforms.com/u/TheGate)\
**Post date:** [October 29, 2019, 4:41pm UTC](https://community.gravityforms.com/t/simple-radio-button-count-resolved/3125/1 "2019-10-29T16:41:12Z")

</div>

Hi all,

I am using Gravity forms to create a simple pages form, each page has a single question on it with 3 radio buttons, I have radio 1 as ‘A’, radio 2 as ‘B’ and radio 3 as ‘C’, this is the same on every question, what I need to do is count how many ‘A’, ‘B’ and ‘C’ I have checked and then take the user to a specific landing page depending on whether they selected mostly 'A’s, mostly 'B’s or mostly 'C’s, is there an easy way of checking how many time my first radio button in a question is checked and then the second etc. I had thought about using a Survey or a Quiz but I’m not either of those will do what I need.

Thanks

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 30, 2019, 1:26pm UTC](https://community.gravityforms.com/t/simple-radio-button-count-resolved/3125/2 "2019-10-30T13:26:22Z")

</div>

You can do that with some PHP after the form is submitted, but before the confirmation is shown. The time to do it would be [gform\_pre\_submission](https://docs.gravityforms.com/gform_pre_submission/).

You can look at the `$_POST` and count the number of times an A, B or C response was selected, then store those counts in a field in the form. That field then becomes the basis for conditional logic for your landing page (Confirmation).

There used to be an add-on that did this work for you (counted the most frequently selected answer values and then you could use that count in conditional logic.) It’s still available and I am not sure if it still works. Might be worth a look?

> **[Gravity Forms Personality Quiz Add-On](https://wordpress.org/plugins/gravity-forms-personality-quiz-add-on/)**
>
> The Personality Quiz add-on for Gravity Forms lets you create simple, un-graded personality quizzes (think Buzzfeed-style quizzes).

---

<div class="post-metadata">

**Author:** ![TheGate](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/thegate/32/1122_2.png) [@TheGate](https://community.gravityforms.com/u/TheGate)\
**Post date:** [October 30, 2019, 1:52pm UTC](https://community.gravityforms.com/t/simple-radio-button-count-resolved/3125/3 "2019-10-30T13:52:15Z")

</div>

Hey Chris,

Thanks for the info, I actually just decided to do this by using $\_POST to look at the individual fields as there where only 7 Questions anyway and then just checked out the value of the selected Radio and basically just added up the 'A’s, 'B’s and 'C’s and then did a confirmation redirect from within the functions.php file, all seems to be working fine.

Thanks again  
Scott Sibson

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 30, 2019, 5:31pm UTC](https://community.gravityforms.com/t/simple-radio-button-count-resolved/3125/4 "2019-10-30T17:31:58Z")

</div>

Glad you were able to solve that.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 30, 2019, 5:32pm UTC](https://community.gravityforms.com/t/simple-radio-button-count-resolved/3125/5 "2019-10-30T17:32:02Z")

</div>


