Toggle menu

Form Functions, Handlers and Signatures

Layout Field Function Signatures

Layout - Conditional Layout: CONDFUNCTION

A field level property on the conditional layout field type. It must be a function. The function should return true to render the contained fields, false to ignore them. Note that fields in the layout are not simply hidden, they are not present on the form at all.

function(helper) {
    var showFields = true;
    return showFields;
}

Layout - Accordion Layout: COLLAPSEDFUNC

A field level property on the accordion layout field. It must be a function. Return "collapsed" or "expanded" to control the behaviour of the layout when first displayed.

function(helper) {
    // The collapsed state can be either "collapsed" or "expanded"
    var collapsedState = "collapsed";
    return collapsedState;
}

Last modified on March 19, 2024

Share this page

Facebook icon Twitter icon email icon

Print

print icon