Numeric questions - Input field should only allow valid values

Description

Currently, for numeric questions - students can initially input non-numeric values.

If they click Next or Submit, they then receive an alert message to input numeric values.

Ideally this message should occur as they inputing any invalid values - i.e. there should be front-end data validation.

Attachments

1

Activity

Show:

Serdar S. July 26, 2019 at 1:27 PM
Edited

If look closely for version 12.4 and 12.2, this problem only occurs in the FIN (fill in numeric) question type of time-limited assessment. In time-limited assessment, adds/updates and persists elapsedTime detail in addition to form data. The problem occurs at this point. When an alphanumeric value is entered for the FIN type, there is no control in the syncTimeElapsedWithServer method to which the elapsed information is assigned, although the FinFormatException thrown and a validation warning displayed. Therefore, the data received by the form is saved as a new record each time. To prevent this situation, (at this point) the related data should retrieve from the database instead of form and elapsedTime detail should update and persist. However, as i have seen in version 19, persistence method (saveOrUpdateAssessmentGrading) has been removed from syncTimeElapsedWithServer.

Shawn Foster July 24, 2019 at 1:12 PM

Okay. I've closed #6553.

Stephen Marquard July 24, 2019 at 12:37 PM

, yes, because an alternate implementation has been committed and merged to branches.

Shawn Foster July 24, 2019 at 8:26 AM

Should we close the PR then?

Daniel Merino July 24, 2019 at 8:14 AM

, , AFAIK this issue is fixed in SAK-41898. I'm resolving it as incorporated.

Feel free to undo the change if you think it is not the same issue. Thanks.

Incorporated

Details

Priority

Affects versions

Components

Assignee

Reporter

Created October 3, 2018 at 5:37 PM
Updated July 26, 2019 at 1:31 PM
Resolved July 24, 2019 at 8:14 AM