Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ChoiceQuestion

import type { ChoiceQuestion } from "https://googleapis.deno.dev/v1/forms:v1.ts";

A radio/checkbox/dropdown question.

interface ChoiceQuestion {
options?: Option[];
shuffle?: boolean;
type?:
| "CHOICE_TYPE_UNSPECIFIED"
| "RADIO"
| "CHECKBOX"
| "DROP_DOWN";
}

§Properties

§
options?: Option[]
[src]

Required. List of options that a respondent must choose from.

§
shuffle?: boolean
[src]

Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent's screen, or to address bias in a survey that might be introduced by always putting the same options first or last.

§
type?: "CHOICE_TYPE_UNSPECIFIED" | "RADIO" | "CHECKBOX" | "DROP_DOWN"
[src]

Required. The type of choice question.