Validate a total of 100%

  • AnJoh2225
    Asked on April 22, 2016 at 4:09 AM

    Hi!

    I want respondents to define what share of their time they spend on different activities and I want to make sure that the total sums up to 100%. Can that be done?

    Thanks!

    Best regards Anna

  • beril JotForm UI Developer
    Replied on April 22, 2016 at 4:41 AM

    As far as I understand from your thread, you want to be sure that your customers fill all of your questions. You can use our progress bar widget. At that time, your users will able to check whether they have completed the form, and also providing feedback on how far they have to go.

    In addition to that, you can require all of your fields as you see below:

    Validate a total of 100% Image 1 Screenshot 20

    If this doesn't answer your question, please explain further and/or add more details about it so we can assist you properly.

  • beril JotForm UI Developer
    Replied on April 22, 2016 at 7:58 AM

    Hello again,

    I've checked your form which is https://www.jotform.com/61121268530345 I understand your issue now.

    You want to show the total of your Under en genomsnittlig arbetsvecka - uppskatta total andel tid du lägger på följande aktiviteter (ska summera till 100%) field and get the error message when the calculation is not 100.

    It is possible with the Form Calculation widget and conditions:

    First of all, you will add the Form calculation widget on your form and you will add your field as you see below.

    Validate a total of 100% Image 1 Screenshot 50

     

    Then, you will check all of your checkboxes for the desired field. 

    Validate a total of 100% Image 2 Screenshot 61

    And finally, you will sum your values as you see below:

    Validate a total of 100% Image 3 Screenshot 72

     

    Now, we will show our error message with Show/Hide conditions.

    Validate a total of 100% Image 4 Screenshot 83

    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.

     

  • beril JotForm UI Developer
    Replied on April 22, 2016 at 10:36 AM

    Thank you for your suggestion @Randy. It is a really good solution. In addition to that, you can also change your maximum range as you see below:

    Validate a total of 100% Image 1 Screenshot 20

    Feel free to contact us anytime.