Fill In Blank

Cloze-test exercise where one or more blanks in a sentence or paragraph are replaced by inline input fields. On submission a minimal inline script compares trimmed lowercase input against accepted answers and highlights each blank green (correct) or red (wrong). A retry button resets all inputs.

Surfaces
webapps-script-web
Degraded on
SurfaceNote
meet-stageInputs render but JS submit handler may be sandboxed — test in target iframe
pdfRenders as a sentence with underline placeholder blanks — no interactivity
Fields
FieldType
templatestring. Sentence with {blank} placeholders marking each gap.required
answerslist[string | list[string]]. Accepted answer(s) per blank in order. A list entry may itself be a list of acceptable alternatives.required
hintstring. Shown below the exercise as a nudge.optional
case_sensitiveboolean (optional, default false).optional
Example payload
{
  "type": "fill_in_blank",
  "template": "Hello, {{name}}!",
  "answers": [
    {
      "text": "Option A"
    },
    {
      "text": "Option B"
    },
    {
      "text": "Option C"
    }
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:fill_in_blank",
  "displayName": "Fill In Blank",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/fill_in_blank",
  "capabilities": [
    "web",
    "apps-script-web"
  ],
  "description": "Cloze-test exercise where one or more blanks in a sentence or paragraph are replaced by inline input fields. On submission a minimal inline script compares trimmed lowercase input against accepted answers and highlights each blank green (correct) or red (wrong). A retry button resets all inputs.",
  "representativeQueries": [
    "show a cloze-test sentence with inline inputs and correct/wrong highlight on submit",
    "cloze-test exercise where one or more blanks in a sentence or paragraph are replaced by inline input",
    "render a fill in blank"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →