• JMap.Form.setActiveTabIndex

    Set the active tab index.

    Works only for attribute form that have at least one external form.

    Index starts at 0 (attribute form), 1 (first external form), etc...

    Use JMap.Form.hasDisplayedForm to know if a form is currently displayed.

    Parameters

    • tabIndex: number

      the tab index

    Returns void

    Throws

    if no layer is displayed, if index is invalid.

    Example

    if (JMap.Form.hasDisplayedForm()) {
    // reset currently displayed form values
    JMap.Form.setActiveTabIndex(1)
    ...
    }