Skip to content

Quiz trigger

This trigger starts a run when somebody takes one of your quizzes: as they start an attempt, when its open answers wait for someone to grade them, or once the attempt is finished and scored. Use it to send a certificate to everyone who passed, to let a trainer know who failed, or to copy every attempt’s answers into a spreadsheet. Surveys have a trigger of their own: see the Survey trigger.

Always available

Under Starts on choose Quiz, then under When one of its seven events.

Setting What it does
When A quiz attempt is started, A quiz attempt needs grading, A quiz attempt is finished, A quiz result is released, A quiz closes, A quiz recipient does not respond or A quiz attempt is regraded.
Quiz “The quiz whose attempts the trigger waits for.” Required: the list holds your organization’s quizzes, by title.
Outcome For A quiz attempt is finished only. Any outcome (default), Passed or Not passed: “Only the attempts that passed, or those that did not; a quiz without a pass mark has neither.”
Grades For A quiz attempt is finished only, on a quiz with a grading scale: “Only attempts with one of these grades of the quiz’s scale.” Empty (Any grade) takes every grade.
The trigger's properties starting on Quiz, with When set to A quiz attempt is finished, the Safety training quiz, Outcome Passed and the Grades field

“Each time somebody starts the quiz.” The run starts as the attempt begins, so it has no answers yet and no score: _attempt holds only its ID, its number, when it started and its language.

“Once per attempt, when open answers wait for somebody to grade them by hand.” The AI could not grade them, so the attempt waits in the quiz’s Needs review queue. The run gets the same as for a finished attempt, with the score the rest earned so far and the waiting answers’ verdict set to pending. Use it to post the attempt to a trainers’ channel or create a task. When the answers are graded, A quiz attempt is finished follows.

“Once per attempt, when it is sent and scored, every open answer graded.” The attempt has ended, whether the person sent it, the time ran out or they left the tab as often as the quiz allows. When every question is scored by its answer key, the run starts at once. When open answers are graded by AI, it starts once they are graded, and when someone has to grade them by hand, once they have, so the score it gets is final. With Outcome set, it starts only for the attempts that passed, or only for those that did not. It also brings the attempt’s answer sheet, a PDF of the answers as given: file pickers offer it under Answer sheet, to attach to an e-mail or file in storage.

“Once per attempt, when the person is shown their result; they are also sent it by e-mail when it is known.” When that happens depends on the quiz’s Show the result setting: at once, once every answer is graded, or when someone releases it. The run gets the same as for a finished attempt, and _attempt.resultUrl, a link to the person’s result page that works for 30 days.

“When its close date passes or its last response starts.” It starts once per close: change the close date or the limit in the quiz’s schedule, and the next close starts it again. The run gets _quiz and _closure only: no attempt is its subject. Use it for a closing report, such as the results to a spreadsheet or an e-mail to the person in charge.

Variable Label in the picker Contents
_closure.reason Why it closed date or limit.
_closure.closedAt Closed at (date and time) When it closed.
_closure.attempts, .finished Attempts taken, Attempts sent How many attempts it took, and how many of them were sent.

“Once per person, when an invitation’s deadline passes without their answer. For a follow-up, such as a call or a CRM task; reminders are set on the invitation.” When you send the quiz’s invitations with a Deadline, Doxtly watches it. Once it passes, each person those invitations went to who hasn’t finished the quiz starts one run: a person of the quiz’s access list, or a contact who was sent a personal link. Their reminders stop then.

Reminders before the deadline are a setting of the invitations themselves, so you don’t build them with this event. Use it for what a reminder can’t do: a call from sales, a task in the CRM, a word to the person’s manager. Outcome and Grades don’t apply, as they filter finished attempts.

The run has no answers, no _attempt and no _results. It gets _quiz (id, title) and _person, which the picker lists under Recipient. For a contact it also gets _contact and _company, as a run from a personal link does, custom fields included; the picker marks them Only when the recipient is a contact.

Variable Label in the picker Contents
_person.kind Recipient kind (list or contact) list or contact.
_person.name, .email Name, Email address Who it is.
_person.group Group Their group on the access list; empty for a contact.
_person.invitedAt, .openedAt, .startedAt Invited at, Opened at, Started at When they were sent the invitation, opened it and started an attempt; empty until it happened.
_person.remindersSent Reminders sent How many reminders went out to them.
_person.deadline Deadline The invitation’s deadline.

Times are in your organization’s time zone. To send the quiz again, or another one, from a workflow, use Send a quiz.

“Each time a finished attempt’s score, pass or grade changes; _attempt.previous holds the outcome before.” A grader changes an answer’s points, a workflow grades it, or a regrade applies a new answer key or grading scale. The run gets the same as for a finished attempt, the new outcome included, its answer sheet among the files, and the outcome before the change. Use it to correct a spreadsheet row, or to send a certificate to someone who passes only now.

Variable Label in the picker Contents
_attempt.previous.score, .previous.percent Score before, Percent before The points and the share before the change.
_attempt.previous.passed Passed before Whether the attempt passed before.
_attempt.previous.grade Grade before The grade it had before.

Each question’s answer sits at the top of the run’s data, by its data key, as a form’s fields do: {{ q_safety_1 }}. In the picker they are under Quiz answers. The quiz link’s parameters and the quiz’s metadata come too. Besides them:

Variable Label in the picker Contents
_quiz.id Quiz ID The quiz’s identifier.
_quiz.title Quiz title Its title.
_attempt.id Attempt ID The attempt’s identifier.
_attempt.number Attempt number Which of the person’s attempts it is: 1 for the first.
_attempt.startedAt Started at (date and time) When the attempt began.
_attempt.language Language The language the attempt was taken in, such as en.
_attempt.personName, .personEmail, .personGroup Person’s name, Person’s e-mail, Person’s group Who took it: from the quiz’s access list, or on a link anyone can open, from the questions that ask for it; empty when neither says.
_attempt.sheetNumber, .sequence Sheet number, Sheet sequence The attempt’s number in the quiz, with the quiz’s prefix (EXAM-0042), and the bare number (42).
_attempt.certificateCode, .certificateUrl Certificate code, Certificate verification address The code printed on the attempt’s certificate (ABCD-EFGH-JKMN) and the address of its public check; put both on the certificate, the address also as a QR code.

For A quiz attempt needs grading, A quiz attempt is finished, A quiz result is released and A quiz attempt is regraded, also:

Variable Label in the picker Contents
_attempt.status Attempt status Such as completed.
_attempt.finishedAt Finished at (date and time) When it ended.
_attempt.endedBy, .timedOut How it ended, Time ran out submitted, time_up or focus_lost; timedOut is true for time_up.
_attempt.durationSeconds Duration (seconds) How long it took, in whole seconds.
_attempt.focusLosses Times the tab was left How often the person switched away.
_attempt.score, .maxScore, .percent Score (points), Maximum score (points), Score (%) The points scored, the most there were to score, and the share.
_attempt.passed, .passPercent Passed, Pass mark (%) Whether the attempt passed, and the mark it needed; empty when the quiz has no pass mark.
_attempt.grade.label, .grade.code, .grade.bandId, .grade.passed Grade, Grade code, Grade ID, Grade passes The grade reached on the quiz’s grading scale, named in the attempt’s language; empty without a scale.
_quiz.gradingScale.name Grading scale The scale’s name.
_attempt.counted Counts for the person Whether this is the attempt that counts for its person.
_attempt.releasedAt Result released at (date and time) When the person was shown the result; empty until then.
_attempt.summaryRow Summary row (for a spreadsheet) The attempt’s row of the quiz’s Summary, by the column headings in the quiz’s language, for a Write to a sheet step to write as it is.
_results Results per question (list) One entry per question, in the order the person saw them.

Each entry of _results holds questionId, number (the question’s number, from 1), position, key (its data key), label (its text), answer, verdict (correct, partial, incorrect, unanswered, pending while it waits for a grade, or ungraded), correct (true when wholly right), points, maxPoints, timeSeconds (time spent on it), hiddenSeconds (of which with the tab hidden), visits, returns, answerChanges and otherText (what the person wrote beside Other; empty without it). Use it in a list mapping, such as one spreadsheet row per question.

Times are in your organization’s time zone. An answer to a password question is always empty.

Example: a certificate for everyone who passed

Section titled “Example: a certificate for everyone who passed”

Northbridge Advisory runs a safety training that ends with a quiz. A workflow listens for finished attempts:

Setting Value
Starts on Quiz
When A quiz attempt is finished
Quiz Safety training
Outcome Passed

Generate document fills the certificate with {{ _attempt.personName }} and {{ _attempt.percent }}, and Send email sends it to {{ _attempt.personEmail }}. Named in the quiz’s settings, the same workflow also offers the certificate on the result page: see Certificates, where the quiz can create this workflow for you.

The same events reach outgoing webhooks that take them, for a training system that should hear about every attempt by itself.