Validate a total of 100%

  • Profile Image
    AnJoh2225
    Asked on April 22, 2016 at 04: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

  • Profile Image
    beril
    Answered on April 22, 2016 at 04: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:

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

  • Profile Image
    beril
    Answered on April 22, 2016 at 07: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.

     

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

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

     

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

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

     

  • Profile Image
    grade4pagasa
    Answered on April 22, 2016 at 09:25 AM

    Hi Anna

    Let me offer an alternative solution (provided that I understood your specifications).

    There are 4 activities that the users can adjust via the sliders. 

    If the total % is not equal to 100%, the Submit button will be disabled. 

    If the total % is greater than 100%, an error message will appear & the Submit button will still be disabled. 

    Hope this demo form helps.

    - Randy, fellow JotForm user. 

     

  • Profile Image
    beril
    Answered 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:

    Feel free to contact us anytime.