Skip to main content

Add Closed-Ended Question

Adds a closed-ended question (multiple choice, checkbox, or dropdown) to a Google Form.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Form Id - The unique identifier of the Google Form to which the question should be added.
  • Question Title - The title or text of the question to be added.
  • Answers - An array of possible answer options for the question.
  • Index - The position (1-based) where the question should be inserted in the form.

Options

  • Required - If enabled, respondents must answer this question before submitting the form.
  • Type - The type of closed-ended question:
    • Radio - Single choice question (radio buttons)
    • Checkbox - Multiple choice question (checkboxes)
    • Dropdown - Single choice question (dropdown menu)
  • Correct Answers - (Optional) An array of correct answer options for quiz forms.
  • Point - (Optional) The point value for correctly answering this question in quiz forms.

How It Works

The Add Closed-Ended Question node inserts a new closed-ended question into an existing Google Form. When executed, the node:

  1. Validates the required inputs (Form Id, Question Title, Answers, and Index)
  2. Retrieves the Google Form using the provided Form Id
  3. Parses the answer options into the appropriate format
  4. If specified, parses the correct answers for quiz forms
  5. Constructs a request to create a new item with the specified question properties
  6. If correct answers are provided, includes grading information in the request
  7. Uses the Google Forms API to insert the question at the specified index position
  8. The form is updated with the new question

Requirements

  • A valid Google Forms form ID
  • Appropriate permissions to modify the form
  • Valid question title and answer options
  • Valid index position (must be greater than 0)
  • For quiz forms, valid correct answers if specified

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Form Id
  • Empty or invalid Question Title
  • Empty or invalid Answers
  • Empty or invalid Index
  • Invalid Index value (0 or negative)
  • Invalid Type selection
  • Google Forms API errors during question creation
  • Insufficient permissions to modify the form
  • Invalid correct answers (if specified)
  • Invalid point value (if specified)

Usage Notes

  • The Index is 1-based, meaning position 1 is the first question in the form
  • For Radio and Dropdown questions, respondents can only select one answer
  • For Checkbox questions, respondents can select multiple answers
  • When used in quiz forms, correct answers and point values can be specified
  • Answer options should be provided as an array of strings
  • Correct answers (if specified) should match values from the Answers array
  • The question will be inserted at the specified position, shifting existing questions to the right