Use a document condition to move candidates on when their documents are in order, or to send them to someone on your team when they aren't. There are three:
- Document check looks at how each document came out when it was checked.
- Document expiry looks at each document's expiry date.
- Document issue date looks at how old each document was when it was uploaded.
The steps and what each condition matches come first. How Crew counts a candidate's documents (which files count, and which one is read when a document has several) is at the end, in How documents are counted.
Add a document condition
- Open the workflow in a draft and add a condition, or a branch on a Path.
- Pick Document check, Document expiry or Document issue date.
- Under Document, pick which documents to look at:
- Any document matches when at least one document matches.
- All documents matches when every document does. If the candidate has no documents, it doesn't match.
- One document, such as Passport, looks only at that one.
- Under Result is, Expiry is or Issue date is, pick what to match.
- Publish.
The text under each choice says what it matches. The notes at the bottom say which documents the condition looks at and when it is checked.

Document check
When a candidate uploads a file, Crew checks it against the document it should be, and the file gets a verification result. Document check branches on that result:
- Uploaded: the document has a file, whatever its result.
- Verified: it passed the check, or someone on your team verified it.
- Needs review: it didn't pass the check, or Crew couldn't read it, so someone on your team should look at it.
- Doesn't match: someone on your team rejected it.
- All verified: every file of the document is verified. Useful when a document has more than one file.
Until the check finishes, a file is still being checked, and it matches only Uploaded. When a document has more than one file, the result comes from its best file; see How documents are counted.
A common setup: one branch sends Needs review to a stage where someone on your team checks the document, and another moves Verified on.
Documents still owed
Document check also counts every document a required question has asked for so far, even if the candidate hasn't uploaded it yet. A document still owed meets no result, not even Uploaded. That is what lets All documents wait until everything is in.
A document is owed when a required question asked for it, on the application form or on a question set sent to the candidate. These ask for nothing:
- an optional question,
- a question set that was replaced by a newer one,
- a document that was archived.
A question that accepts one of several documents, such as "Passport or ID", is owed once: as soon as the candidate uploads any one of them, the question is settled.
What has been asked depends on where the condition is
A condition counts what has been asked by the time it is checked. A question set sent later in the workflow adds its documents to every check after it, never to one that already ran.
An example. The application form asks for a passport and a proof of address. Further along, a question set asks for a police clearance and a medical certificate.
- Document check · All documents · Verified right after the application looks at the passport and the proof of address. Once both are verified, it matches.
- The same condition after the question set looks at all four, and waits until the police clearance and the medical certificate are sent and verified too.
Document expiry
Document expiry branches on the expiry date of the candidate's existing documents that are set up with one. A document that hasn't been uploaded never matches here.
- Expired: the expiry date is today or earlier.
- Expires soon: still valid, but expires within the warning window: 30 days, unless the document is set up with another.
- In date: expires after the warning window.
- Expiry date unreadable: the document should have an expiry date, but none could be read from the file.
When a document has more than one file, the date comes from its best file. So a verified passport that has expired counts as Expired, even if a rejected copy shows a later date: the verified file is the one Crew trusts.
Document issue date
Document issue date branches on how old the candidate's existing documents were when they were uploaded, for documents set up with a maximum age on their issue date. Like expiry, it reads the best file. What each choice matches is in Branch on a document's issue date.
Combine conditions
Document expiry · All documents · In date only looks at the documents that were uploaded, so it can match while a document is still owed. To move candidates on when everything is in and nothing has expired, put both under All of these match:
- Document check · All documents · Verified
- Document expiry · All documents · In date
When the conditions are checked
- When a candidate reaches the stage.
- Whenever one of their files is uploaded, checked, changed or deleted, while they wait there.
- Every hour while they wait, for Document expiry, since a document can expire meanwhile.
To see which branch a candidate would take, and why, use the Path tester. See The Path tester — which branch takes this candidate, and why not the others.
How documents are counted
Read this when a candidate takes a branch you didn't expect.
A document and its files
A document is everything a candidate sent for one kind of document: their passport, their proof of address. The kinds of documents your workspace asks for are set up in Templates · Documents, and that is where the names in the Document list come from.
Each upload is a file. Most documents have one. A document with two sides, such as an ID card, is still one file, with both sides in it. A document can have more than one file when:
- two questions asked for the same document,
- someone on your team uploaded one as well,
- a file came from one of the candidate's earlier applications in the same region.
Uploading again to the same question replaces the file, so it doesn't add a second one.
The best file
When a document has more than one file, the conditions read the file with the best verification result, in this order: Verified, Needs review, still being checked, Doesn't match. If two files have the same result, the most recently uploaded one is used.
An example. Your team rejected the passport a candidate sent on one question, and the candidate sent a clear copy on another, which was verified. The passport counts as Verified: the rejected file doesn't hold the candidate back once a good one is in. It isn't All verified, though, because one of its files was rejected.
Which files count
The conditions look at:
- what the candidate uploaded on this application, to required or optional questions,
- what your team uploaded for them,
- files from their earlier applications in the same region.
They don't look at:
- a file someone on your team deleted. If the candidate uploads again, the new file counts.
- files that aren't a document, such as chat or email attachments and signed contracts.
Questions that accept one of several documents
On a question such as "Passport or ID", Crew works out which one the candidate sent, and the file belongs to that document: a passport counts as the candidate's passport. If they send both, each is its own document, and All documents looks at both. See Accept several document types on one question.
When the file is none of the documents the question accepts (a photo of a bill on a "Passport or ID" question), it can't belong to any of them. It counts as a document of its own, and reads as Needs review until someone on your team verifies it, rejects it or says which document it is.
Good to know
- The warning window and the maximum age are read when a file is checked. Changing them in Templates · Documents applies to files checked after the change.
- What the candidate's Documents tab shows doesn't change with these conditions. They only decide where the candidate goes in the workflow.