How can I make a group of boxes enter a particular total?

  • jrsnell
    Asked on June 18, 2014 at 2:09 PM

    I am developing a form and one question I am asking is what percentage of my client's assets are held in each financial class... i.e. stocks, bonds, other, cash etc.

    I want to provide an entry area where they can enter a number between 0 and 100 (percentages), but I also need of all of the boxes to total exactly 100 (percent) for the question to be considered as answered.

    I'm sure I'm not the first, but I can't find anything in the forums etc. Maybe if someone has an example or can point me to a previous post, that would be great.

    Thanks.

  • Welvin Support Team Lead
    Replied on June 18, 2014 at 4:13 PM

    Hi,

    I don't think we have a direct function that would compare the exact answers so I would suggest hiding the submit button until the total becomes 100.

    Example: http://www.jotformpro.com/form/41686480816968 (Clone version of your form). As you could see, the submit button is hidden by default. The field "Total (Must equal 100)" must have the total of 100 before the submit button becomes visible.

    I have added the following conditional logic entry:

    How can I make a group of boxes enter a particular total? Image 1 Screenshot 20

    This should work! Your thoughts?

    Thanks