8000 Form Validation example default age parse error · Issue #107 · seanhess/hyperbole · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Form Validation example default age parse error #107

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

Open
seanhess opened this issue May 15, 2025 · 0 comments
Open

Form Validation example default age parse error #107

seanhess opened this issue May 15, 2025 · 0 comments

Comments

@seanhess
Copy link
Owner

Since making value actually set the value via javascript, the Form Validation example has an error. If we set value="0" like we did previously, it clears the age the user entered when validating the form. If we omit it, we get a server-side parse error if the user doesn't edit the field. (Trying to parse the empty string).

Ways to fix this?

  1. improve form parsing to handle empty strings for integers.
  2. Change validation code so Validated has a value if validated?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0