Gravity Form - get field values and sum only if field value is 1
<p>I have 4 number fields on gravity form
User can input values between 1 to 5
I want to count how many values are 1 and sum up total.</p>

<p>So for e.g. </p>

<pre><code>Field 1 = 1
Field 2 = 4
Field 3 = 5
Field 4 = 1
</code></pre>

<p>Then total no. of 1 are 2 (Field 1 + Field 4)</p>

<p>How can i make this work to gravity form?</p>