Tabbed Interface for Duplicate Group of Fields
A Dynamic Panel displays a group of repeating form fields that respondents can duplicate on the fly. Dynamic Panels support a tabbed interface, where users can switch between duplicate groups using tabs. This demo shows how to enable and configure the tabbed UI.
Create a Dynamic Panel
For information on how to create and configure a Dynamic Panel, refer to the following demo:
Dynamic Panel with Repeating Group of Fields
Enable the Tab View and Configure Tab Titles
To enable the tab view, set the displayMode
property to "tab"
. Once the tabbed UI is activated, specify a custom template for tab titles using the templateTabTitle
property. Your template can include the {panelIndex}
and {visiblePanelIndex}
placeholders that contain panel indexes within the collections of all or only visible panels, respectively. These indexes start with 1. If you do not specify the templateTabTitle
property, tab titles are constructed according to the following pattern: Panel 1, Panel 2, Panel 3, and so on.
In this demo, tab titles display selected countries. Until you select a country, a new tab displays the "New Vacation" title. This logic is implemented using an invisible Expression form field. The templateTabTitle
property is bound to this Expression. If you want to customize an individual tab title, handle SurveyModel
's onGetDynamicPanelTabTitle
event (not used in this demo).