Skip to main content

QuestionnaireFormContextType

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: Interface
Package: @ovok/native

Import​

import { QuestionnaireFormContextType } from '@ovok/native/questionnaire-response-form';

TypeScript shape​

interface QuestionnaireFormContextType extends FormikProps<QuestionnaireFormValues> {
questionnaire: Questionnaire;
currentItem: ExtendedQuestionnaireItem | undefined;
currentPage: ExtendedQuestionnaireItem;
currentPageIndex: number;
currentItemIndex: number;
errorMessage: string | null;
submissionError: string | null;
retrySubmit: () => void;
paged: boolean;
allItems: ExtendedQuestionnaireItem[];
pages: ExtendedQuestionnaireItem[];
setCurrentItemIndex: React.Dispatch<React.SetStateAction<number>>;
setCurrentPageIndex: React.Dispatch<React.SetStateAction<number>>;
setErrorMessage: React.Dispatch<React.SetStateAction<string | null>>;
}

This is a type-level export; it has no call parameters.

Public members​

MemberTypeDetails
questionnaireQuestionnaire—
currentItemExtendedQuestionnaireItem | undefined—
currentPageExtendedQuestionnaireItem—
currentPageIndexnumber—
currentItemIndexnumber—
errorMessagestring | null—
submissionErrorstring | null—
retrySubmit(): void—
pagedboolean—
allItemsExtendedQuestionnaireItem[]—
pagesExtendedQuestionnaireItem[]—
setCurrentItemIndexReact.Dispatch<React.SetStateAction<number>>—
setCurrentPageIndexReact.Dispatch<React.SetStateAction<number>>—
setErrorMessageReact.Dispatch<React.SetStateAction<string | null>>—

Source​

View the declaration in the SDK source.