jQuery UI Widgets › Forums › Plugins › Validator, Drag & Drop, Sortable › On 4.5.1 validationSuccess and validationError are not firing
This topic contains 4 replies, has 2 voices, and was last updated by Hristo 7 years, 11 months ago.
-
Author
-
Hi,
On 4.5.1 validationSuccess and validationError are not firing. I’m using the events, not the properties. And I’m not using an HTML Form, I’m using a DIV tag to set up the entire validator. Everything works beautifully up to the point where I should be coming through the validation. Neither event fires.
I have seen the fiddles but I don’t think there’s a working example of a validator that’s attached to a DIV tag that also configures validationSuccess or validationError.
Is there a problem with using a DIV tag and getting those events? The DIV tag is the DIV for the window that contains all my form fields.
Thank you.
Hello emberq,
I tested the validationError and validationSuccess and they seem to work fine.
Could you provide us an example that demonstrates this?Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comThanks for the speedy response. Actually I just found the issue. My dialog has a radio button group. I had a function as a rule. That killed it. When I use simply ‘required’ as the rule on that radio, all is well. There was nothing wrong with the function. It worked well.
So it seems like you cannot have a radio and use a custom function as a rule. It must be ‘required’.
Actually same is true for a simple input text field. If you use a custom function to validate, the function could validate fine but the success and error functions don’t fire.
I have a dependency case where I only want to validate the input text if a particular radio id checked. I don’t think I can do that the way things are currently set up in the validator.
Not sure why a custom function on these field types would break the validator.
Hello emberq,
Please, take a look at this topic, it will be useful:
http://www.jqwidgets.com/community/topic/hos-to-validate-jqxradiobutton-group/#post-22099Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.