Active
Project:
Clientside Validation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 May 2012 at 15:26 UTC
Updated:
6 Jul 2015 at 05:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
attiks commentedWhat module are you using for horizontal tabs?
Comment #2
jelle_sfixed in latest dev
Comment #3
iTiZZiMO commentedThank you for fixing it.
I am using the field_group Module for horizontal-tabs.
Comment #4
attiks commentedIt should work with field_group but all elements on all tabs are validated including the hidden ones. For vertical tabs this is a setting.
Comment #5
iTiZZiMO commentedIt works, thanks. But i found another issue, which may be interesting for you.
In the code, there is this block:
When validating, this code checks for fields inside the tab, which have the error class. If you already validated, there is the error message shown. This message has also the class "error" and is only hidden, when the field is valid. The code above does select these error messages and does not go into the first IF.
I figured out, that appending .not('label') onto the .find('.' + errorClass) does the trick.
Is this a good method or do you have a better one?
Comment #6
attiks commentedI've to check with Jelle_S
Comment #7
jelle_sYou're right. Fixed in latest dev version.
Comment #8
jelle_sComment #9
jelle_sComment #11
fishfree commentedI still can not get it work with fieldgroup horizontal tab. I use the configuration as below:

When I click on Save button, all required fields on non-current tab trigger validation.
Collapsed fieldset (provided also by fieldgroup module) can bypass the required fields validation when clicking on save button.