Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Localized numbers in fields are re-displayed in english after an invalid form submit #23

Open
berturion opened this issue Nov 18, 2015 · 3 comments

Comments

@berturion
Copy link

Say we have a field containing a float number in french (with a comma as decimal separator). If the user enter 4,5 (a valid value) and submits the form but the form is invalid for another reason, the form is displayed again to the user with the number in english format (with a dot as decimal separator).
Is it normal ?

@weierophinney
Copy link
Member

@berturion Yes; internally, the values are passed through a normalization filter first, prior to validation, and the normalized value is also what is used then to populate errors and form values.

@berturion
Copy link
Author

Ok, I understand. Is there a way to filter the values again before populating errors and form values in order to have values in a valid localized format? Because the problem is that the user has to correct already valid filled values he entered... It is quiet annoying, not very user friendly...

@michalbundyra
Copy link
Member

This repository has been closed and moved to laminas/laminas-form; a new issue has been opened at laminas/laminas-form#51.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants