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.

Zero value of calculation field not shown

  1. beclo
    Member

    I've searched the forums and can see related issues, but not this exact problem.

    I'm developing a simple quiz. I'm running GF 1.6.5.1 which has the new calculation feature.

    The form has several pages. The pages alternate between question and explanation. Each question is a field with radio buttons, and I'm using values to specify 0-values for wrong answers and 1-values for correct answers. On the final page (after the submit button is clicked) I want to say "You scored: x".

    To achieve this I've created a "Your score" field, and makes use of the calculation feature, using a calculation like:

    {Question 2:3} + {Question 1:1} + ...etc

    I then include the total field in my confirmation text. e.g.:

    You scored: {Your score:13}

    This works fine, as long as the calculated value is not zero. If the value is zero then it just displays:

    You scored:

    With no number.

    Any ideas why this is happening and how I can get the zero value to display? I originally had the 'Your score' field as admin only, to hide it, but I read something elsewhere in the forums about admin only fields not liking zero values. However, I get the same issue if the 'Your score' field is visible to everyone.

    You can see it at http://studentswitchoff.oikos-host.org.uk/university/university-of-swindonia

    Posted 12 years ago on Wednesday August 22, 2012 | Permalink
  2. beclo
    Member

    Am I allowed to bump topics on here? It's been a couple of days and I've had no response.

    Posted 12 years ago on Friday August 24, 2012 | Permalink
  3. I just tested this and was able to confirm. Let me ask the developers about this and see what they say. Thanks for your patience.

    Posted 12 years ago on Friday August 24, 2012 | Permalink
  4. beclo
    Member

    Thanks Chris. Glad you could reproduce the issue.

    Posted 12 years ago on Friday August 24, 2012 | Permalink
  5. Sure thing. Sorry about the trouble.

    Posted 12 years ago on Friday August 24, 2012 | Permalink
  6. Hi, Ben,

    This is a bug. I have just emailed you a version of Gravity Forms with the bug fix (1.6.5.1.5). As I mentioned in the email, this fix will also be available in the next public release of Gravity Forms.

    Thanks.

    Posted 12 years ago on Friday August 24, 2012 | Permalink