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
Changes on hidden fields not beeing re-validated #802
Comments
+1 for this |
I think it is related to #189 |
I don't see how even handlers on hidden elements would help. If they are hidden, there will be no events. Other JS code can change their value, but events are triggered only by changes made by the user. Your best bet is to trigger validation for hidden fields based on when their value changed, e.g. hook into a callback of the slider and use that to revalidate the hidden field. |
+1 for this |
+1 |
1 similar comment
+1 |
Some fancy jQuery plugins (e.g. slider) use hidden form input fields to set & submit values to server-side). If you want to validate them too, you can simply set
.setDefaults({ ignore: "" })
. It will then be validated and error messages will be shown. However, the plugin does not bind any event listeners to the invalid hidden input fields to track the changes there.Desired behaviour: The plugin should register an
onChange
event listener on every input field that hasn't been set to be ignored via.setDefaults({ ignore: ""})
option once the form submit event has been triggered. Like it registersonfocusout
, etc., event listeners for other input fields.The text was updated successfully, but these errors were encountered: