Skip to main content
addQuestion is the concise way to add one question item. Use addItem for grids, sections, text, images, or videos.

Example

Inputs

form, title, and question are required. description, optional quiz grading, one-based position, and requiredRevisionId are optional. Question types are shortText, paragraph, multipleChoice, checkbox, dropdown, scale, date, time, duration, and rating. Choice questions require options; scale uses low 0 or 1 and high 2–10; rating uses icon (star, heart, thumbUp) and 3–10 levels. Every question can set required; choices can set shuffle; date can set includeTime and includeYear. grading is { correctAnswers: string[]; points: number; generalFeedback?: string; whenRight?: string; whenWrong?: string }. account optionally selects the Google account binding.

Output

Returns the complete updated Form. Omit position to append. A stale requiredRevisionId rejects the write instead of overwriting newer changes.