Skip to main content

QuestionnaireFormProviderProps

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

Kind: Type alias
Package: @ovok/native

Import​

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

TypeScript shape​

type QuestionnaireFormProviderProps = {
questionnaire: Questionnaire;
initialValues?: Partial<QuestionnaireFormValues>;
paged?: boolean;
} & ({
onSubmit?: undefined;
onSuccess?: (response: QuestionnaireResponse) => void;
onError?: (error: Error) => void;
} | {
onSuccess?: undefined;
onError?: undefined;
onSubmit?: (values: QuestionnaireFormValues, formikHelpers?: FormikHelpers<QuestionnaireFormValues>) => Promise<void>;
});

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

Public members​

MemberTypeDetails
questionnaireQuestionnaire—
initialValuesPartial<QuestionnaireFormValues>Optional. —
pagedbooleanOptional. —
onSubmitundefinedOptional. —
onSuccess(response: QuestionnaireResponse) => voidOptional. —
onError(error: Error) => voidOptional. —

Source​

View the declaration in the SDK source.