We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a form that has a Numeric Field, InputType Float (To allow for decimals). However the MAX rule does not properly validate with the decimals.
Create a new form:
Render the form and enter 1.01 in to the field
Expected behavior:
The value 1.01 SHOULD be considered invalid.
Actual behavior:
The form will not correctly validate the value exceeds max until 1 is whole @ 2.
None at this time.
The text was updated successfully, but these errors were encountered:
In order to validate a field as a number you should add numeric rule too, eg:
numeric
rules: 'required|numeric|max:1'
Anyway there was indeed a bug in the validating algorithm which is now fixed in 1.1.11, thanks for reporting.
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Versions
Description
I have a form that has a Numeric Field, InputType Float (To allow for decimals). However the MAX rule does not properly validate with the decimals.
Steps to Reproduce
Create a new form:
-rule: required & max:1
Render the form and enter 1.01 in to the field
Expected behavior:
The value 1.01 SHOULD be considered invalid.
Actual behavior:
The form will not correctly validate the value exceeds max until 1 is whole @ 2.
Additional Information
None at this time.
The text was updated successfully, but these errors were encountered: