Skip to content

Commit

Permalink
Merge pull request #1023 from bcgov/bugfix/AB#27804-FixNumericValidation
Browse files Browse the repository at this point in the history
bugfix/AB#27804-FixNumericValidationOnScroesheet
  • Loading branch information
jimmyPasta authored Jan 23, 2025
2 parents 24a5175 + 1eec2cd commit 89925c4
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 89925c4

Please sign in to comment.