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. Read more...
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
Configure the Tab View
To enable the tab view, set the renderMode
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.
If you want to customize an individual tab title, handle SurveyModel
's onGetDynamicPanelTabTitle
event. For instance, this event can be used to specify titles for new tabs. In this demo, tab titles display selected countries. Until you select a country, a new tab displays the "New Vacation" title. The onGetDynamicPanelTabTitle
event is used to specify this title. Refer to the code listing for an example.