Validation only if element is visible?

If you use the built in JS fx it will ... and I just committed a fix for the Fabrik element class hide() and show() methods, so stuff like el.form.formElements.get('foo___bar').hide() and .show() will now work.

Also if you manually add the fabrikHide class to a group or element wrapper.

Well, actually, if any ancestor of the input field for an element has the fabrikHide class, it'll work.

During submission, we do this:

https://github.com/Fabrik/fabrik/blob/master/media/com_fabrik/js/form.js#L1395

... loops through all the elements, and do a jQuery closest('.fabrikHide') on each element's input. Which will find any ancestor with the class, all the way up to the body tag.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top