How to conditionally add points to an answer?

  • 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  Screenshot 10

    1627659301 61041c2577269  Screenshot 21


  • igorbojczuk
    Replied on July 30, 2021 at 5: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  Screenshot 10

    1627680739 61046fe343be1  Screenshot 21

    I hope you will find this helpful.

    Regards,
    Igor