Skip to content

Commit

Permalink
bugfix/AB#27804-FixNumericValidationOnScroesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPasta committed Jan 23, 2025
1 parent 24a5175 commit 1eec2cd
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,7 @@ function handleInputChange(questionId, inputFieldPrefix) {
if (assessmentAnswersArr[x].questionType === 1) {
let inputNumberField = document.getElementById('answer-number-' + assessmentAnswersArr[x].questionId);
let numberErrorMessage = document.getElementById('error-message-' + assessmentAnswersArr[x].questionId);

if (inputNumberField.required) {
assessmentAnswersArr[x].isValid = validateNumericField(inputNumberField, numberErrorMessage);
}
assessmentAnswersArr[x].isValid = validateNumericField(inputNumberField, numberErrorMessage);
} else if (assessmentAnswersArr[x].questionType === 2) {
let inputTextField = document.getElementById('answer-text-' + assessmentAnswersArr[x].questionId);
let textErrorMessage = document.getElementById('error-message-' + assessmentAnswersArr[x].questionId);
Expand Down

0 comments on commit 1eec2cd

Please sign in to comment.