Drupal and GovCMS

How the AFP Career Finder puts quiz scoring into Drupal content.

Every rule that decides an outcome is content. The code only adds up.
September 2026 10 min read
A police officer stands beside a black dog wearing a vest, with a yellow truck in the background.

The Australian Federal Police wanted an interactive career finder that matched a visitor to a career path and pointed them at real vacancies. We built it so AFP content editors can change the questions, answers and scoring rules themselves, without a developer changing code. The quiz runs on Drupal, with the code handling the scoring rather than defining what each answer means.

The AFP recruits across more than 200 roles: investigators, forensic specialists, intelligence analysts, technologists, aviation and protective service officers, negotiators, scientists and lawyers. Most people arriving at a police careers page know one job title. It is usually the one from television.

The Career Finder exists to widen that. Ten questions about how someone prefers to work lead to a match with the career path where they would have the most impact, with live roles attached. It is aimed at job seekers and career changers, with particular attention to audiences the AFP has historically under-reached.

Doghouse delivered the technical approach, architecture, build and editorial model on our Drupal CMS distribution, and has supported the Career Finder since launch.

200+
AFP roles to match against
59,049
paths a branching quiz would need
20
working days to build the engine
393
lines of PHP in the custom module

Evidence over preference.

The technical approach was undecided at the start. Discovery left one question open: should this be Drupal, or a self-contained JavaScript application sitting on a Drupal page?

Both were defensible. Drupal held the content, the authors, the hosting, the release process and years of accumulated accessibility work. JavaScript held the interaction model the client had asked for: a gamified, card-based experience with no server round trip between questions and full freedom over animation.

This is the point in a project where a technical lead's preference can win quietly, then be defended for months. Instead, we built two throwaway prototypes of two to three hours each, against the same question set, and scored both against the same criteria. JavaScript led on interactivity, responsiveness, dynamic logic and raw performance. Drupal led on data collection, ease of use for editors, flexibility and, by the widest margin, maintainability. Those are the criteria that still matter years later.

Six hours of throwaway code settled an argument that would otherwise have run for the length of the project. It settled it with evidence rather than seniority. It also produced the one finding neither side wanted: Drupal only wins if the front end can carry the gamified interaction. That became a condition on the decision, not a footnote.

Points, not branches.

The second decision mattered more than the first, though it is less visible to people using the quiz. The original concept described branching paths. Answer A to question one leads to one question two. Answer B leads to a different question two. A specific sequence of answers produces a specific career. It reads well in a discovery document. In an implementation it is a decision tree, and a decision tree is code.

The arithmetic is unkind. Three answers per question across 10 questions is 59,049 distinct paths. Nobody authors that, and nobody tests it. Every time the AFP wanted to add a question, reword an answer or introduce a new career path, someone would have to change the tree.

The brief assumed that someone would be us. It did not ask for the AFP to edit the quiz. It set aside support hours for Doghouse to maintain it instead.

We took a different route. In a weighted model, each answer carries points towards one or more career paths. Every visitor sees every question in the same order. At the end the points are summed and the highest total wins. That distinction decided the architecture. A weighted model can be expressed as content, and content is editable by the people who own it.

Every rule that decides an outcome is content. The code only adds up.

The scoring rules are taxonomy terms.

The model has three parts, all managed as Drupal content.

Career paths. The outcomes. Each term carries the description, the photography and the links to live roles that appear on the result page.

Answers. Every possible answer is a term. Each one holds repeatable paragraphs: a points value, and the career paths those points are awarded to.

Questions. A custom Webform element. An editor builds a question by selecting answers from the vocabulary rather than typing option text into a configuration box.

So a question is a form page, an answer is a term, and a scoring rule is a paragraph attached to that term. Editors can add questions, rebalance which answers favour which careers and by how much, or add a career path through content authoring. The published quiz runs to 11 pages: one asking for the visitor's preferred name, then 10 questions carrying 30 answers between them.

This is the practical benefit of the model: AFP editors can add questions, reword answers, retune weightings and introduce career paths without a development ticket. The code has no knowledge of what a question means or which career it favours, so those changes do not require code changes.

Ten answers, one running total.

Scoring is a traversal and a sum. For each answer the visitor chose, the module loads the term, reads its points paragraphs, and adds each points value to every career path that paragraph names. One answer can feed several careers at different weights. That is what lets a single question express nuance rather than a hard fork.

The tie is the interesting part.

Summing points is the easy half. The other part is deciding what happens when two career paths finish level. Across 10 questions and more than 40 career paths drawing from a shared pool of answers, ties are possible and need a consistent resolution.

Falling back to whichever career the database happened to return first would be non-deterministic and unexplainable. It would also stay invisible until a stakeholder took the quiz twice and got two different careers. The resolution uses three ordered criteria, applied in a single sort.

Total points. Settles the overwhelming majority of submissions on its own.

Depth of preference. How many answers gave this career their strongest score. This is the criterion that makes a tie feel right to the person who took the quiz.

A curated ordering maintained by the AFP. Deliberately last, and deliberately theirs. When the data cannot separate two careers, the recruiter decides, not the developer.

Every tie now has one answer, the same answer every time. None of the three criteria lives in code as a career name.

A result that survives being shared.

The result page is the thing people send to a friend, screenshot, or open again three months later when they finally apply. That imposes two requirements, and they shaped the last piece of the module.

First, the outcome has to be a real, stable page rather than a rendered response to a form submission. It can then be linked to, cached and indexed like anything else. Second, opening it repeatedly must always show the same career.

So scoring runs exactly once. The outcome is stored as a lightweight content record, and every later visit reads that record rather than recalculating. Re-running the sum would be wasted work. Worse, if the AFP had retuned the weightings in the meantime, it would quietly tell the same person they were now suited to a different career from the one they were shown.

The requirement we advised against.

Discovery asked for lead capture: first name, email address and area of interest, feeding follow-up emails to potential applicants. We advised against it. An email address gives the visitor nothing. They get their match and their live roles either way. What it does add is personal data to store, protect and account for, on a law enforcement agency's website.

So the Career Finder collects a preferred first name and nothing else. There is no email field, no address stored against a result, and no follow-up email in the flow. A visitor can complete the quiz, receive a match and follow it through to a live vacancy without ever identifying themselves.

The narrowest data collection that serves the visitor also reduces the amount of personal data to manage. Every field you do not collect is one less field to validate, store and protect.

Lead capture is still an option. If the AFP decides the benefit is there, it can be added as an opt-in step, without touching the scoring. Our recommendation was to start from the least data the quiz needs, not to rule a lead out.

Accessible because the platform is.

A gamified interface is where accessibility usually slips. Animation, custom controls and progressive disclosure all make it easy to build something that works with a mouse and fails everyone else.

The Career Finder avoids that by staying inside the platform. It inherits the same accessibility baseline, component standards and release checks as every other page on the AFP's site. Keyboard and screen reader use were treated as part of the build, not a remediation pass after it. That was the practical case for Drupal in the prototype comparison: the accessibility work already existed, and the quiz did not have to rebuild it.

The engine and the interface were built separately.

The engine took 20 working days to build: the content model, custom form element, scoring, tie-break and result handling. It took 52 commits by one developer to move from an empty module to a working quiz that scored a submission and redirected to the right page.

The front end was then built against a quiz engine that already worked. That meant the visual design could be applied without also having to finish the scoring model.

Two Drupal versions, one scoring model.

The Career Finder went into production with content migrated from staging rather than rekeyed. It has been supported since launch.

The support record is unglamorous, as maintenance ought to be. A duplicated Exit control when the behaviour bound twice. A URL change when the entry point was renamed to match the AFP's campaigns. And the module carried intact through a Drupal 10 platform upgrade and on into Drupal 11, without the scoring model being reopened once.

What recruitment can see now.

A quiz that matches people to careers is also a record of what people are drawn to. We built a Looker Studio dashboard on the AFP's analytics so the recruitment team can read that record.

It shows which answers visitors choose, which career paths the quiz sends people to most, and which it rarely does. It shows where people drop off, and how many go on from their result to the live roles. For a recruitment team, the quiet careers are as useful as the popular ones. They show where the gaps are, and where the next campaign needs to go.

Nobody has needed to open the part that decides the answer.

The AFP has a gamified recruitment tool running inside its corporate website. It uses the same platform, accessibility work, release process and support arrangement as the rest of the site. Editors can retune it without a development ticket, and the recruitment team can see what it is telling them. The custom module is 393 lines of PHP.

The measure of this build is that, through two major Drupal versions after launch, the scoring model has not needed to change.

Interactive tools do not have to live outside your website.

We build them into governed Drupal platforms, as content your team owns.