Is it possible to identify and display the top four results from an assessment?

  • hbcmedia
    Asked on December 16, 2014 at 9:32 PM

    I'm brand new to jotforms and created my first form, an assessment today. I used calculation fields to determine the score of several categories at the end of the form. I would like to identify and display the top 4 categories based on the scores of about 15 calculation fields. I was trying to do this with the Conditions Wizard but cannot figure out a way to do it without custom javascript that isn't supported within the wizard.

    I was looking to use Math.max or an array. I was able to get the largest values with the nth function but I need to return both the values and the labels of the fields with the four largest values.

    Another thought I had was to create a report and email that to the individual or embed it in the form somehow. I'm not sure if advanced functions are possible in reports but I would assume so. I just haven't found it yet.

    Any help would be greatly appreciated!

  • Ashwin JotForm Support
    Replied on December 17, 2014 at 3:19 AM

    Hello hbcmedia,

    I do not think that it will be possible to achieve your requirement with conditions wizard. If it is possible it will be too complicate set of conditions but I am unable to workout a solution.

    I would suggest you to download your form's full source code and then add custom JavaScript code to to the calculation and also show the label as well.

    Thank you!

  • abajan Jotform Support
    Replied on December 17, 2014 at 4:10 AM

    @hbcmedia

    Are the radio button choices for the questions correct? I noticed that they state:

    Consistently true
    True some of the time
    True most of the time
    Consistently true

    Shouldn't it be:

    Consistently true
    True most of the time
    True some of the time
    Consistently false

    ?

  • hbcmedia
    Replied on December 18, 2014 at 3:11 PM

    Thanks @abajan. I hadn't finished updating all of the answers yet which is why those were off. Everything is updated now though.