4 Replies Latest reply on Apr 19, 2015 6:11 AM by omanbux

    JavaScript to collect correct answers

    omanbux

      Hi, in my form 4 questions are there. bellow that question i have add text fields to add correct answer. bellow the 4 question another text fields available to collect total points. my question answers are bellow. So if the client insert correct answers into the text field then i want to add +2 in the total field.If the clients answer correct all of the questions 1-3-4-5 than the total filed will have 8 points. so pls give me javascript to manage this work. thanks in advance.

       

      Text fields names

      Q-1

      Q-2

      Q-3

      Q-4

      Answer

       

      Correct answer for the first question is: 1

      Correct answer for the second question is: 3

      Correct answer for the third question is: 4

      Correct answer for the 4th question is: 5