How to conditionally add points to an answer?

  • Profile Image
    NgeeAnnPolytechnic
    Asked on July 30, 2021 at 11:32 AM

    dear sir

    i have created a text field and if user gives any of these 3 answers / 2/ or all 3, i plan to award them 2000 pts.

    how should i set up my logic? and take care of case sensitivity? tk u.

    SAFTA, AANZFTA, CPTPP


    1627659120_61041b705c57b_

    1627659301_61041c2577269_


  • Profile Image
    Igor_B
    Answered on July 30, 2021 at 05:36 PM

    Hi,
    We have created a simple test form for you to demonstrate this calculation.

    https://support.jotform.com/212106096394050

    Unfortunately, the only way to do this might seem like a bit of an overkill, however as our Calculate Field option does not support loop calculation such as n = n + 1, this has to be done using 4 additional number fields that are hidden.

    The Contains condition is not case-sensitive. You could inject the following CSS into your form to force only uppercase in that field:

    #input_10 {
    text-transform: uppercase!important;
    }


    1627680698_61046fbabde9b_

    1627680739_61046fe343be1_

    I hope you will find this helpful.

    Regards,
    Igor