• A new version of Full Calendar is now available.

    See the details here

Accordion Form Groups

  • Views Views: 10,647
  • Last updated Last updated:

Navigation

         Form Article Plugin Tutorial
      Autofill form plugin
      Clone form plugin
      Comment form plugin
      Email form plugin
      EXIF form plugin
      FTP form plugin
      J2store form plugin
      Kunena form plugin
      Limit form plugin
      Log Form Plugin
      Logs form plugin
      Mailchimp form plugin
      Paginate form plugin
      Paypal form plugin
      PHP form plugin
      Pingdotfm form plugin
      Receipt form plugin
      Redirect form plugin
      REST form plugin
      Slack form plugin (+)
      SMS form plugin
      Twitter form plugin
      Upsert form plugin
      VBforum form plugin
      Create a Search Form
      Accordion Form Groups
  • Accordion Groups are a standard way of displaying lengthy Forms in Joomla. Forms will show only one Group of Elements at a time, closing the existing open Group when you open a different Group.

    Fabrik 3.0 :
    Presuming your form has an id of 1 then create a 1.js file in components/com_fabrik/js and enter the following Javascript into the file:
    window.addEvent('domready', function() {
    var handles = document.getElements('legend');
    var Elements = document.getElements('fieldset > ul, fieldset > .fabrikSubGroup');
    var myAccordion = new Fx.Accordion(handles , Elements);
    });
    Each group heading when clicked on will hide the other Groups content and show its own - see Mootools Accordion documentation.

    You may need to tweak your form template to ensure a minimum height for each fieldset:
    CSS:
    fieldset {
    min-height:21px;
    }
Back
Top