@nycu-sdc/core-system-sdk
    Preparing search index...

    Interface FormsQuestionRequest

    The request body for creating/updating a question.

    interface FormsQuestionRequest {
        choices?: FormsChoiceOption[];
        date?: FormsDateOption;
        description: ProseMirrorDocument;
        oauthConnect?: AuthOAuthProviders;
        order: number;
        required: boolean;
        scale?: FormsScaleOption;
        sourceId?: string;
        title: string;
        type: FormsQuestionTypes;
        uploadFile?: FormsUploadFileOption;
    }
    Index

    Properties

    choices?: FormsChoiceOption[]

    Available choice options for single_choice, multiple_choice, dropdown, and ranking questions.

    Available options for date questions.

    description: ProseMirrorDocument

    The question description as ProseMirror JSON, edited in Tiptap and sent by the admin interface.

    oauthConnect?: AuthOAuthProviders

    Available options for OAuth connect questions.

    order: number

    The desired position of this question within the section (1-indexed). On create, clamped to [1, currentCount + 1]; on update, clamped to [1, totalCount]. The server automatically shifts other questions to maintain a contiguous order sequence.

    required: boolean

    Whether the question is required to answer or not.

    Available options for linear scale and rating questions.

    sourceId?: string

    If set, choices are dynamically generated from answers to this question.

    title: string

    What is the question.

    The type of the question.

    Available options for file upload questions.