Python script for use as a webhook with Survey123 - to create a self-grading quiz. The python script can be loaded into Amazon Lambda or Google Cloud Front and triggered upon quiz (Survey 123) submission. The following fields will need to be added to your survey's table for the script to work as-is.
An example of the quiz can be found here
- Processed [integer]
- total_correct [integer]
- percent_correct [string]
The Creator field must be set to editable (this allows teacher username to be written to Creator - thereby allowing teacher to see/download only their (students') data.
Survey must have eight questions, the labels must be Q1 - Q8. The correct option must have a value of 'a'.