Skip to contents

This function makes a google request object that will be able to be posted with a batch request and and added to a Google form to edit it.

Usage

create_text_question(
  form_id = NULL,
  commit_to_form = TRUE,
  required = FALSE,
  question = NULL,
  correct_answer = NULL,
  google_forms_request = NULL,
  point_value = 1,
  location = 0,
  quiet = FALSE
)

Arguments

form_id

The id of the google form to be updated

commit_to_form

Whether or not the request should be committed. If need to build the request further, you will want to say FALSE. Default is TRUE

required

TRUE or FALSE is this a required question? Default is not required.

question

a string that is what the question should say

correct_answer

A string that matches exactly what would be considered a correct

google_forms_request

A google forms request object. If not supplied, it will be created new.

point_value

An integer representing how many points

location

Where should the new question be added

quiet

TRUE/FALSE you'd like a progress message?

Examples

if (FALSE) {

create_text_question(
  form_id = "12345",
  question = "Put text here that is for filling in the blank",
  point_value = 1
)
}