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.
the tab index
if no layer is displayed, if index is invalid.
if (JMap.Form.hasDisplayedForm()) { // reset currently displayed form values JMap.Form.setActiveTabIndex(1) ...} Copy
if (JMap.Form.hasDisplayedForm()) { // reset currently displayed form values JMap.Form.setActiveTabIndex(1) ...}
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.