Calculation Widget: Count Function Not Returning Numeric Result

  • Profile Image
    Greg_Spear
    Asked on March 20, 2026 at 4:57 PM

    I've tried for hours, even working with your AI and my AI. after dozens of tries, I just cant get your count function to work on my calculation widget. i want to count the questions answered with a number. the questions responses have values. with the exception of "please respond" which leaves blanks. the formula just returns a string, not the actual calc. {COUNT} ( {field1}, {field2}, {field3}) Ive made sure the ( and , are black so treated like a number not a string. I've made sure all the questions are scorable. can you tell me what i need to fix?

  • Profile Image
    Gian_D JotForm Support
    Replied on March 20, 2026 at 5:49 PM

    Hi Greg,

    Thanks for reaching out to Jotform Support. I saw that your Form Calculation widget isn't working properly. I've cloned your form and tested it to see if I can replicate the issue, and the same thing happened to me. When I investigated your form, I saw that you're using the Count function on your Dropdown fields, and there's no plus sign between your fields in the Form Calculation widget.

    Take note that the Count function won't work in your Dropdown field because the Dropdown field is automatically counted as one only, but the Count function will work on your Multiple Choice widget because it has multiple options. Since your Dropdown fields have calculation values on their options, you can remove the Count function and add a plus sign between your fields. Let me show you how to do it:

    1. In Form Builder, click on the Wand icon of your Form Calculation widget.
    2. Then, copy the formula on the screenshot below, and click on Save on the right side of the page.

    
Calculation Widget: Count Function Not Returning Numeric Result
Image-1

    I've applied the said changes on the clone version of your form to demonstrate it. Check out the screencast below:

    
Calculation Widget: Count Function Not Returning Numeric Result
Image-2

    As you can see, it is now working properly. You can clone my demo form as your reference.

    Let us know if there’s anything else we can help you with.

  • Profile Image
    Greg_Spear
    Replied on March 20, 2026 at 6:20 PM

    Actually, the "Questions Answered" field is a little different. I was trying to count any time the selection moved off of "Please Select" (with a value of blank) and the question was answered (with a value of 0 or greater) So that's what got me to looking at the {Count}() function. count 1 for any question with a number, dont count if blank ("Please Select")

    I've tried every syntax of {count}() i could think of.

    Actually, the calculated field above this one named "Total Points" has the same formula that you used in the demo form, and, agreed, its adding up the points.

    I just cant seem to get a {count}() of questions, even when the value is 0

    Do you have any other ideas, it's so close!

  • Profile Image
    Ronald JotForm Support
    Replied on March 20, 2026 at 6:35 PM

    Hi Greg,

    To make the form count if the field filled in, you will need a helper for each field. For this demo, I will be using a Short Text field as a helper. Let me walk you through it:

    1. In Form Builder, click on Add Element and drag-drop a Short Text fields.
    2. Next, click on the Type a Question text and change it to the question you want to use.
    3. Click the Gear icon then go to Advanced tab and enable the Hide Field option.

    
Calculation Widget: Count Function Not Returning Numeric Result
Image-1 Now, let's set up the conditions:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.

    2. Next, click on Conditions on the left of the page.

    3. Now, click on Update/Calculate Field to create your condition (if you already have a condition, first click on Add Condition and then click on Update/Calculate Field).

    
Calculation Widget: Count Function Not Returning Numeric Result
Image-2

    4. Set the conditions like you see below and click on Save:

    
Calculation Widget: Count Function Not Returning Numeric Result
Image-3
Calculation Widget: Count Function Not Returning Numeric Result
Image-4

    Now, you can update the Form Calculation widget to get the total questions answered like this:

    
Calculation Widget: Count Function Not Returning Numeric Result
Image-5

    Check out the screencast below to see what happens when the condition is met or not met:

    
Calculation Widget: Count Function Not Returning Numeric Result
Image-6 Reach out again if there’s anything else we can help you with.

  • Profile Image
    Greg_Spear
    Replied on March 20, 2026 at 8:37 PM

    Ronald, its official, I completed your reocmmendations to all the questions and your workaround to the {count]() function works GREAT!

    THANKS for your help, that was very creative!

  • Profile Image
    Greg_Spear
    Replied on March 21, 2026 at 5:07 PM

    PDF to Include Question and Answer of any Question scoring 1 or more points?

    I've been struggling all day with something I thought was easy.

    I simply want my pdf to show the questions and related answers where the score is 1 or more. exclude questions with blank score "Please Select" or a 0 score.

    I've tried /add element/form fields, then pdf/setting/hide empty form fields. but that keeps questions on the form (from the "Enter Text" field), even when Blank or 0 score.

    The idea is the user gets a list of questions/answers they need to address...nothing else.

    I cant set the 0 scores to blank, because i need to also count all the questions 'answered" and helper fields that count each question 'answered', per earlier this thread. but that wouldn't help anyway because of the answer text noted above appearing for blank scores.

    Any work around ideas?

  • Profile Image
    Jerlan JotForm Support
    Replied on March 21, 2026 at 5:13 PM

    Hi Greg,

    I’ve gone ahead and moved your other question to a separate thread to keep things tidy, and someone from our Support Team will help you out with it here.

    Let us know if you have any other questions.