Skip to main content
Frank Sobolewski
Participating Frequently
September 20, 2021
Question

JavaScript for percentage calculations for completed test

  • September 20, 2021
  • 1 reply
  • 1474 views

I require a JavaScript for calculating the percentage for a test. The form is a quiz for a presentation and there are 20 questions. Want the person correcting the test to set this up so that they can input the number of correct answers and the form will autocalculatte the percentage and fill in the next field.

 

Any input is appreciated.

 

This topic has been closed for replies.

1 reply

Inspiring
September 20, 2021

What are field names?

Did you format field as percentage?

Frank Sobolewski
Participating Frequently
September 20, 2021

Field name is Text4.0 which is the correct number of answers 

Text 4.1 is the calculated % of the correct answers input into Text4.0 by the Instructor and the total number of questions is 20.

Nesa Nurani
Community Expert
Community Expert
September 20, 2021

If you formated "Text 4.1" as percentage you can just use simplified field notation like this:

Text4.0/20