lib/formtools/overview.js
function setTabId (sections) {

    sections.forEach(function (section, sectionIndex) {

        if (!Array.isArray(section)) {
            return;
        }

        section.forEach(function (tab, tabIndex) {

            // Replace white space from tab.label with "-", make it lowercase and add the index number at the end.
            // sectionIndex and tabIndex number are added at the end to make the tabID unique in case when more then one tab have the same label (title)
            tab.tabId = (tab.label).replace(/\s+/g, '-').toLowerCase() + '-' + sectionIndex + '-' + tabIndex;

        });

    });

}
function setTabId (sections) {

    sections.forEach(function (section, sectionIndex) {

        if (!Array.isArray(section)) {
            return;
        }

        section.forEach(function (tab, tabIndex) {

            // Replace white space from tab.label with "-", make it lowercase and add the index number at the end.
            // sectionIndex and tabIndex number are added at the end to make the tabID unique in case when more then one tab have the same label (title)
            tab.tabId = (tab.label).replace(/\s+/g, '-').toLowerCase() + '-' + sectionIndex + '-' + tabIndex;

        });

    });

}
function setTabId ( sections ) { sections . forEach ( function ( section , sectionIndex ) { if ( ! Array . isArray ( section ) ) { return ; } section . forEach ( function ( tab , tabIndex ) { // Replace white space from tab.label with "-", make it lowercase and add the index number at the end. // sectionIndex and tabIndex number are added at the end to make the tabID unique in case when more then one tab have the same label (title) tab . tabId = ( tab . label ) . replace ( / \s+ / g , '-' ) . toLowerCase ( ) + '-' + sectionIndex + '-' + tabIndex ; } ) ; } ) ; }
Set unique tabId to each tab in overview.body
@param {Array} sections overview body array
Set unique tabId to each tab in overview . body