-
Notifications
You must be signed in to change notification settings - Fork 786
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
visibleIf compares numbers from text-type questions like strings #140
Comments
@klvbdmh I may add inputType property to the QuestionText class. |
@klvbdmh However, I can see, there is an issue with numeric validator as well. I will look at it. Thank you. |
That would be fantastic. |
@klvbdmh validation works as expected. It is executed on clicking page next and complete. |
Yes, changing inputType to "number" works great now. Thank you. |
Steps to reproduce the issue:
2
,100
,11111
,gggg
. After entering each value press Enter.Expected behavior
2
, the text underneath should sayLess than 1200
.100
, the text underneath should sayLess than 1200
.11111
, the text underneath should sayGreater than 1200
.gggg
, the text underneath shouldn't say anything, as we already include validator for numerical values.Observed behavior
2
, the text underneath saysGreater than 1200
.100
, the text underneath saysLess than 1200
.11111
, the text underneath saysLess than 1200
.gggg
, the text underneath saysGreater than 1200
.Notes
Text is the only question type that allows entering custom numerical values, for example salary or car mileage. It looks like the values are compared like strings instead of numerical values. The current behavior is a major problem when using numerical value to customize survey logic.
The text was updated successfully, but these errors were encountered: