/** @module Survey Builder: Choice Group */ import { SelectionOrder } from "./selectionSurveyBuilding"; /** * A choice group contains an ordered list of the choice id for the choices assigned to the group. Choice groups can not be nested. */ export interface ChoiceGroup { /** * The ordered list of choice ids for the group */ ChoiceGroupOrder?: string[]; /** * The display name given to the group */ GroupLabel?: string; Options?: { /** * Hide the group title in the survey editor and when taking the survey. By default, this option is not enabled and respondents will be able to see your group titles. */ HideTitle?: boolean; Selection?: ChoiceGroupSelectionType; }; } /** * The type of selection allowed within the choice group */ export declare enum ChoiceGroupSelectionType { /** * Single Answer Within Group, When you choose an answer from the group, this is the only answer you can provide for the whole group. You can still select answers from other groups. */ SAWithinGroup = "SAWithinGroup", /** * Multiple Answer Within Question, You can choose any number of answers across the question, regardless of group. */ MAWithinQuestion = "MAWithinQuestion", /** * Single Answer Within Question, When you choose an answer from the group, this is the only answer you can provide for the whole question. */ SAWithinQuestion = "SAWithinQuestion" } /** * ChoiceGroups defines the fields necessary for questions with ChoiceGroups * If you have ChoiceGroups you also must have ChoiceGroupOrder. * ChoiceGroupOrder is an ordered list of ChoiceIds and ChoiceGroupIds. ChoiceOrder is derived from ChoiceGroupOrder. */ export interface ChoiceGroups { readonly ChoiceGroups?: Record; readonly ChoiceGroupOrder?: SelectionOrder; } //# sourceMappingURL=choicegroup.d.ts.map