-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce people entering numbers for hours #193
Conversation
We had `input type: number`, which doesn't exist, and so was doing nothing. Changed to `datatype: number`, and added validation messages that should show if the user enters something that's not a number.
A bit more context here: there are production errors that have the following error:
I hadn't been able to fix this without looking at the inputs that people give, because the error doesn't have enough information. But I discovered it was because people were entering full sentences in that field, which obviously causes a conversion error. I looked at trying to patch Footnotes
|
@nonprofittechy , @plocket Realized that I forgot to mention this fix I made last week on deep-dive today. The thing I wanted to float was if we thought that the solution I mentioned here is a good idea; otherwise, existing interviews where people have entered non-numbers will continue to be broken. |
@BryceStevenWilley that's a pretty interesting idea. I'm willing to try it. I suspect that the existing broken interviews are just abandoned forever though, so it's not necessarily urgent. |
Not unstructured text.
Tested and it works fine. TBH I have more concerns about the number validation UX messages than I do about sending people back, but that's a separate issue.
That's true, it's not urgent, but it is a nice safety feature to have as well IMO, in case other override the question. |
We had
input type: number
, which doesn't exist, and so was doing nothing. Changed todatatype: number
, and added validation messages that should show if the user enters something that's not a number.