Managing the Question DB

⚠️ Important update to instructions posted August 30, 2021.

  1. Login to Google Drive.

  2. Create your own copy of the spreadsheet by selecting File > Make a copy....

  3. Now publish your copy of the spreadsheet by selecting File > Publish to the web...

  4. Click the Publish button and copy the full link provided.

  5. Find the setup() function in your JavaScript file, like the example below, and replace your link as the googleSheetLink.

  6. Now you can edit your Google Sheet and your question database will automatically be updated in your trivia app.

//Runs once at the beginning
function setup() {
  var googleSheetLink = "https://docs.google.com/spreadsheets/d/e/2PACX-1vRYCi4KENeZMlf9JbV8BhVrdOHse2250INSiRo7gEYWUYp3V0jiWFKWcnm1jzx5q1BMsmd9fOopk2Z_/pub?output=csv";
  trivia.loadGoogleSheet(googleSheetLink).then(displayWelcome); 
}

Last updated