Index: lams_tool_lamc/web/authoring/editQuestionBox.jsp =================================================================== diff -u -r7011368b3f7cc34d52ce8f8640b64a9add794dd6 -r525fef17717ea250350b7204056960f735ce02cb --- lams_tool_lamc/web/authoring/editQuestionBox.jsp (.../editQuestionBox.jsp) (revision 7011368b3f7cc34d52ce8f8640b64a9add794dd6) +++ lams_tool_lamc/web/authoring/editQuestionBox.jsp (.../editQuestionBox.jsp) (revision 525fef17717ea250350b7204056960f735ce02cb) @@ -68,7 +68,34 @@ document.McAuthoringForm.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); + } + } + @@ -78,6 +105,7 @@ styleId="newQuestionForm" enctype="multipart/form-data" method="POST"> + @@ -131,7 +159,7 @@
-