-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
validating all tabs on form submit #279
Comments
Same issue, even with 1.9. It only validates the currently selected tab. Weird thing is that I thought that I had this working before. I have one form spanning ALL tab divs, and running jQuery 1.7, Validate 1.9. Edit: I checked an old version of this app, and it IS working fine! I am trying to backtrack my steps to see if an update of a library, or the app itself, broke this somehow. |
I had done a work around to get it work, by selecting each tab through code var valid1 = true; -Prithivi On Wed, Dec 21, 2011 at 11:39 AM, bhendel <
|
I also hit this problem, I just stored instances of all of the hidden inputs (select, textarea, etc), marked them as visible, performed the validation and hid them again, not ideal in any circumstances but it works for now |
Ok I've confirmed this in my app. The old Validate 1.7 works fine. Switching to the new 1.9 fails! Only validates the selected tab. Switching from jQuery 1.6.2 to 1.7 has no affect. Seems like something in the space between validate 1.7 and 1.9 broke multi-tab validation! So guys, try the old 1.7 and see if it works. It does for me! -Brian |
Works on 1.8.1 too... so must be something in 1.9 that broke it |
Why don't you redefine jquery UI stylesheet? /.ui-tabs .ui-tabs-hide { display: none !important; }/ |
Mmm. Wouldn't that show all tabs? This was functionality working in 1.7 and 1.8, and is not working in 1.9. I think the solution is to fix the issue in the library, not hack the CSS or try for dirty workarounds. |
Yes you're right, in last thing you say. Let me say that "hack CSS" is not a crime. Finally, has any developer post a reply? Do they keep in mind? |
Hi all, please read the changelog before upgrading the library: 1.9.0...
For more information of the issue, please read: |
That's painful. What is the best way to disable this logic and have it continue validating all fields? Thanks. -Brian |
I found the fix! |
There should be some way without hacking the library however. |
Why you consider this a hack? |
But you changed the actual library file itself? That's a hack. The library SHOULD have an interface in the config function to be able to change this logic after integration. Otherwise your change will be wiped out when you upgrade to the next version. It would be unfortunate if the plugin developer hard-coded this change and did not allow some some of "configuration" parameter. -Brian |
I found a way without hack, just add ignore: "" on the options list. |
Interesting. So you just told it to ignore nothing? Nice! |
I think it is because of the following default setting which was added in I've actually changed the default option value in my valodation.js file so that it is global. |
Instead of changing the library, or setting it in your validate options, you should use $.validator.setDefaults(), like so:
The above only needs to be called once, when the document is ready. |
Closing since this can be done already as @counsellorben describes. |
Hello All ; |
@counsellorben this function not working when i am using CKEditor . It shows required even i filled value to the box |
In my case it ignore all validation and submit form. |
Currently validation happens only on the selected tab. But like to have the validation happening for all the tabs on form submit, would be workaround to achieve this?
This is on one single form.
The text was updated successfully, but these errors were encountered: