1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Validation only if element is visible?

Discussion in 'Professional Support' started by joit, Feb 16, 2017.

  1. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    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:


    ... 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

Share This Page