How can I display descriptions based on score results?

  • Profile Image
    Abate_Michael
    Asked on February 18, 2021 at 08:38 PM

    Hi there, there are two specific things I would like to accomplish with my form.

    First, I would like to display some text descriptions based on the 1-5 scale rating they pick. If the user selects "1" that response would show below. Currently I am setting it using a condition with a "show" field. Is there an easier way to do this?

    1613698668_602f166cc8f65_

    Secondly, I would like all the responses to be added up to give a final score. I have used the calculator widget which calculates fine. But based on what that final score is, I would like to display a description of that score.

    • If the sum of the questions is between 1-20 I would like to display one result.
    • If the sum of the questions is between 21-40 I would like to display another result.

    I would like to be able to do this based on all calculations up to the max score they can receive. Right now I tried setting it using two settings within one condition (if greater than 1 and less than 20) but it doesn't seem to work from me.

    1613698560_602f1600da2e2_

    Some guidance would be greatly appreciated and if there is an easier way to do this it would be great to know. Thanks.

  • Profile Image
    octavius
    Answered on February 19, 2021 at 02:05 AM

    Hello,

    You can use the "Less Than" option on the "Show/Hide Field" condition. Please follow these steps,

    1) On the Form Builder, go to the Settings tab and open the Conditions tab.

    2) On the Conditions tab, create a new "Show/Hide Field" condition and use the condition to show the next question if the user selects "1" or "2" for the first question.

    1613716443_602f5bdb0a7db_Screen Shot 202

    Here is a screencast for you to follow the process,

    1613716490_602f5c0acd6bf_sc1.gif

    For your second request, you can use the Form Calculation Widget and the Show/Hide Field condition. Please follow these steps,

    1) On the Form Builder, click the +Add Form Element button and go to the Widgets tab. Then, add the Form Calculation field to your form.

    2) Open the Form Calculation Widget Settings and add the "Scale Rating Properties" to the widget.

    3) Click the +Add Form Element button, add two Paragraph fields to your form. Then, you can customize the Paragraph fields.

    Here is a screencast for you to follow,

    1613717273_602f5f1907071_sc2.gif

    4) Go to the Conditions tab and create a new Condition.

    The reason that I have used the "Is Filled" options is that the form filler will be able to view the Result only when the form is completed.

    1613717491_602f5ff31b4f4_sc3.gif

    You can view the example form and clone it if you wish to,

    Example Form

    How to Clone an Existing Form from a URL

    If you need further assistance, please let us know.

  • Profile Image
    Abate_Michael
    Answered on February 19, 2021 at 01:26 PM

    Thanks for this, really helpful. How would I set it up so that I get different results for different scores. Your setup allows for 2 Results, Success or Failure. I am looking for results based on a score. See below:

    • Result A = 61-65
    • Result B = 51-60
    • Result C = 41-50
    • Result D = 31-40
    • Result E = 21-30
    • Result F = 1-20
  • Profile Image
    Jovanne_A
    Answered on February 19, 2021 at 06:25 PM

    Hi,

    You need to set up a paragraph for each result and apply a show/hide condition bases on the Calculation Total.

    Guide: https://www.jotform.com/help/316-how-to-show-or-hide-fields-base-on-user

    1613777036_6030488cabde9_7.png

    1613777046_603048964050f_8.png

    1613777065_603048a91f6df_9.png

    You can check and clone my demo form: https://form.jotform.com/210496604736964

    Guide: how-to-clone-an-existing-form-from-a-url

    I hope this helps. Let us know if you need further assistance.

  • Profile Image
    Abate_Michael
    Answered on February 19, 2021 at 07:15 PM

    Thank you. I have put this together, but all the paragraph sections are displaying instead of only the applicable ones.

  • Profile Image
    Abate_Michael
    Answered on February 19, 2021 at 07:39 PM

    Nevermind :) I had conflicting conditions. Is there anyway to display the paragraph result on the Thank You Page?

  • Profile Image
    Jovanne_A
    Answered on February 19, 2021 at 08:16 PM

    Hi,

    You can use the Change Thank You Page condition.

    Guide: https://www.jotform.com/help/317-change-thank-you-page-url-based-on-a-condition

    Here's a sample condition:

    1613783766_603062d6825ea_16.png

    I hope this helps. Please give it a try and let us know how it goes.

  • Profile Image
    Abate_Michael
    Answered on February 19, 2021 at 09:31 PM

    Perfect, thanks for all your help.

  • Profile Image
    Abate_Michael
    Answered on February 21, 2021 at 11:44 AM

    One thing I would like to do is generate a PDF at the end of the submission. Is there a way to display only the activated "paragraph" widgets on the PDF generation as well?

    For example when you go through our form and "Result A" is displayed on the form, is there a way for only "Result A" to display on the PDF?

  • Profile Image
    Jeanette
    Answered on February 21, 2021 at 04:42 PM

    Your new question is unrelated to this support ticket, so I have created a new one and we will follow up there: https://www.jotform.com/answers/2913564-one-thing-i-would-like-to-do-is-generate-a-pdf-at-the-end-of-the-submission