How to display a counter of filled fields in the form?

  • cgskillaccounts
    Asked on July 31, 2016 at 7:31 AM

    How do I use this wizard? For say a Dropdown field which is filled equals to 1. If many fields which is filled, it will count all these field = filled = how many fields are filled up?

  • Welvin Support Team Lead
    Replied on July 31, 2016 at 9:39 AM

    Try checking our progress bar widget: https://widgets.jotform.com/widget/progress_bar

    To add a widget in your form, simply follow the steps from this guide: https://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form

  • cgskillaccounts
    Replied on July 31, 2016 at 8:45 PM
    Hi, am afraid is not which I asked for. Is to return value of field if is
    filled equals one or something like that so I can count how many fields are
    filled with values.
    ...
  • Chriistian Jotform Support
    Replied on August 1, 2016 at 2:21 AM

    Unfortunately there is currently no widget available that can fulfill your requirement. The only widget close to your need is the Progress Bar widget, but I see that this is not what you require for your form.

    A possible workaround I can suggest would be to add number fields that will serve as the counter for each fields, then use the update calculate condition to detect if the field is filled.

    1. Add a hidden number field for each of the fields that you have on your form.

    How to display a counter of filled fields in the form? Image 1 Screenshot 60

    2. Now create Copy/Calculate conditions for the number fields and their corresponding field. Here's a guide that you can check out: How to Insert Text or Mathematical Calculation into a Field Using Conditional Logic. You can see the example for the Name field below:

    How to display a counter of filled fields in the form? Image 2 Screenshot 71

    3. Follow step 3 for the rest of the fields and their number field.

    How to display a counter of filled fields in the form? Image 3 Screenshot 82

    4. Now add a Calculation Field that will tally the number fields that have a value of 1. Here's a guide that can help: How to Perform Calculation in the Form?

    How to display a counter of filled fields in the form? Image 4 Screenshot 93

    Here's how it should work after:

    How to display a counter of filled fields in the form? Image 5 Screenshot 104

    You can also clone my test form to your account. Here's the link: https://form.jotform.com/62130816596963 

    If you need further assistance, please let us know.
    Regards.

  • cgskillaccounts
    Replied on August 1, 2016 at 4:04 AM
    Thank you! This shall workaround. :)
    ...