Picture of Rob Mausser
textinput and decimals/periods
by Rob Mausser - Wednesday, 10 November 2021, 7:16 PM
 

We are building a course where we are teaching people math, and we use a lot of the textinput component.

This was built in Adapt 4.5.0, we had not yet transitioned over to Adapt 5 at this point.

We suddenly are realizing an issue with the textinput components, and if we use a period (or decimal).

When the answer requires a decimal (in this case the answer is 25.69) the system will record the user interaction, but upon relaunching the course, the answers are all wrong in Adapt with the value of ******* 

Can we not use periods/decimals in the textinput? This issue is only happening with these components, when we use whole numbers, there is no issue. I didnt realize this would break adapt somehow.

Please help thanks. 

Picture of Rob Mausser
Re: textinput and decimals/periods
by Rob Mausser - Wednesday, 10 November 2021, 9:56 PM
 

Doing more testing it appears that this is not just the issue. If people are answering incorrectly, their incorrect answer isnt being sent back to Adapt from the LMS when they relaunch the course

Picture of Oliver Foster
Re: textinput and decimals/periods
by Oliver Foster - Thursday, 11 November 2021, 10:18 AM
 

Adapt doesn't store textual answers. There isn't enough space in the SCORM spec to store plain text and all of the question states etc. The **** asterix just represents an incorrect answer. If you get the answer correct it will use the listed correct answer from the json, it is not restoring the user's input answer.

See code: https://github.com/adaptlearning/adapt-contrib-textInput/blob/a64d3120448f630eb6b5a9d85c8a25e11c99f2fe/js/textInputModel.js#L36-L60