class FormApp method .addTextItem()

FormApp is the Apps Script service.

.addTextItem() is the method name you will see after a dot in your code.

What it does

Adds a short-answer text question to the form.

Why it's used

  • Add a company name or notes question programmatically.
  • Build forms from a list of fields in a sheet.

Common errors

  • Forgetting parentheses on addTextItem. Write FormApp.addTextItem(), not FormApp.addTextItem or addTextItem by itself.
  • Skipping dots between chained calls. Each step needs a dot, like FormApp.addTextItem().
  • Adding spaces where they do not belong. Write FormApp.addTextItem(), not FormApp .addTextItem(), FormApp.addTextItem (), or FormApp . addTextItem().
  • Wrong capitalization. Use FormApp and addTextItem, not formapp or addtextitem.

1 Snippets using this method

Explore

Related methods

2 Better Sheets tutorials

Automate Emails

Automate Emails

Set up automated email notifications based on Google Sheets data. Super ...
Automatic Calculations

Automatic Calculations

Create custom scripts to make your spreadsheets more like tools.

Related blog posts

Written guides about FormApp.addTextItem().

Browse the blog