Index: lams_tool_lamc/web/monitoring/editQuestionBox.jsp =================================================================== diff -u -r6f9a82945ad22a613ebdf36b17d6b1294d81eac0 -r525fef17717ea250350b7204056960f735ce02cb --- lams_tool_lamc/web/monitoring/editQuestionBox.jsp (.../editQuestionBox.jsp) (revision 6f9a82945ad22a613ebdf36b17d6b1294d81eac0) +++ lams_tool_lamc/web/monitoring/editQuestionBox.jsp (.../editQuestionBox.jsp) (revision 525fef17717ea250350b7204056960f735ce02cb) @@ -51,9 +51,34 @@ document.McMonitoringForm.questionIndex.value=questionIndexValue; submitMethod("removeCandidate"); } + + function validateDuplicateCorrectAnswers() + { + var correctCount = 0; + for(i = 1; i < 51; i++) + { + var currentId="select".concat(i) + var currentField=document.getElementById(currentId); + + if (currentField != null) + { + if ((typeof(currentField) != 'undefined') && (typeof(currentField) != null)) + { + if (currentField.value == 'Correct') + { + correctCount = correctCount + 1; + } + } + } + } + + if (correctCount > 1) + { + var msg = ""; + alert(msg); + } + } - - @@ -63,6 +88,7 @@ + @@ -145,7 +171,7 @@                      - +