User documents (My Documents)

User documents (My Documents)

What it is

My Documents is the core candidate-facing onboarding app in 3B Onboarding (b3o). It renders the Document Pack(s) assigned to a Contact and lets that person complete each requested item, forms, generated documents, e-sign documents, assessments, booking sessions and external links, from a single, progress-tracked screen. It is the front end for the "candidate completes the requested documents" half of the onboarding workflow.

It is used across every vertical b3o serves, Healthcare (right-to-work, registrations, mandatory training), Education (DBS/background checks, safeguarding), Blue-collar and Misc (inductions, tickets, certifications). The same app drives all of them, because what a candidate must do is defined entirely in configuration, not in code.

The problem it solves

A recruiter or compliance team defines, once, a reusable checklist of everything a candidate must complete before they can be placed, a Document Pack. When that pack is assigned to a candidate, you need a single personalised experience where the candidate:

My Documents is that experience. It also supports self-enrolment: when it is launched pointed at a specific Document Pack, it will create the assignment for the current candidate automatically, so a single portal or email link can enrol a candidate into a pack.

Who uses it

How it is surfaced

My Documents can be placed in any of the following ways. Pick whichever matches where your candidates live.

Placement What to use
Visualforce page The managed MyDocuments Visualforce page hosts the app directly. Use this when you want a standalone URL to hand out (email, SMS, iframe).
Lightning App Builder / record page / Community page The native My Documents Lightning component. Its placement targets are Lightning record pages and Community/Experience pages. Drop it on a Contact record page for internal staff, or on an Experience Builder page for authenticated community candidates.
3B Portals The b3p__Portal_Block.My_Documents portal block (web component tag user-documents). Drag it onto a Portals page; the block exposes the presentation and label settings as configurable traits.
Digital Experience Embed the Visualforce page in an Experience Cloud page for community/guest candidates.

Runtime parameters

However it is placed, the app accepts the following inputs. On the Visualforce page they are URL parameters; on the native component and the Portals block they are configurable properties/traits.

Parameter Purpose
user-id (Contact Id) The candidate whose documents are shown. In a Community/Digital Experience this resolves automatically from the logged-in user's Contact; for internal placements pass the Contact Id explicitly.
session-key Guest session key for the contact. Required for 3B Portals guest access; see Access below.
docPackId Restrict the app to a single Document Pack. If the candidate has no assignment for that pack, one is created on the fly (self-enrolment).
appId + Application Field Path Relate a newly created assignment to a 3B Application (or other record). The field path defaults to b3o__X3B_Application__c and is overridable via the "Application Field Path" trait.
focus A b3o__Document__c Id to open immediately on load instead of the dashboard.
Presentation: theme-type, hide-theme-switch, hide-current-user Light/dark theme, whether to show the theme toggle, and whether to show the current-user header.
Label overrides (many) Every visible button and status label (Submit, Re-Submit, View Submission, Dashboard, Requested, Approved, Expired, etc.) can be overridden per placement for wording or language.

Configuration

Configuration is object-and-field driven. The three objects an SI configures are the Document Pack, its Documents, and the Document Assignment. The candidate's Submissions are created by the app.

b3o__Document_Pack__c (the reusable checklist)

One record per reusable pack (for example "UK RGN Onboarding", "Teacher Safeguarding Pack").

Field Type What it does to the candidate experience
Name Text The pack title shown to the candidate.
b3o__Public_Description__c Long text Candidate-visible introduction/instructions shown at the top of the pack. This text is public, do not put internal notes here.
b3o__Submit_in_Order__c Checkbox When checked, the candidate must complete each document in the defined b3o__Order__c sequence, they cannot open document 2 until document 1 is submitted. When unchecked, they can complete items in any order.
b3o__Disabled__c Checkbox Marks the pack as no longer in use. Use to retire a pack without deleting it.

b3o__Document__c (each requested item)

Child of the pack (master-detail). One record per thing the candidate must do. Every document points at exactly one target, and that target determines which embedded tool opens when the candidate clicks Submit. Leave all other targets blank. The read-only b3o__Type__c formula reports which target is set.

Target fields (choose exactly one)

Field Points at Candidate completes
b3o__Form__c 3B Forms form (b3f__Form__c) An embedded form. Produces a b3f__FormResponse__c.
b3o__Document_Template__c 3B CLM template (b3d__Template__c) A generated document (fill-and-generate / download). Produces a b3d__Document_Trace__c.
b3o__Document__c 3B CLM e-sign document (b3d__Document__c) An e-signature flow. Produces a b3d__Submitter__c linked to a b3d__Submission_Request__c.
b3o__Question_Set__c Assessment question set (b3o__Question_Set__c) A timed assessment or Smart Session. Both produce a b3o__Candidate_Scorecard__c.
b3o__Session__c Booking session (b3o__Session__c) Books an interview/appointment slot. See User sessions.
b3o__External_Link__c Text (URL template) Opens an external page in an embedded frame. See "External link tokens" below.

Presentation and instructions

Field Type What it does
b3o__Order__c Number Sort order in the list (ascending, blanks first). Also the sequence enforced when the pack has Submit in Order on.
b3o__Document_Description__c Text area Candidate-visible description/instructions for this item. This text is public.
b3o__Template__c Checkbox Marks the document as a template/library record, used when composing packs rather than as a live request.

Behaviour toggles

Field Type What it does to the candidate experience
b3o__Allow_Editing_Submitted_Form__c Checkbox If checked, the candidate can re-open and re-submit the document up until it has been approved. If unchecked, once submitted it is locked pending review.
b3o__Do_Not_Allow_Viewing_Submission__c Checkbox If checked, the candidate cannot preview a submission they already made (for example a document that should not be re-displayed after sign-off).
b3o__Does_Not_Require_Approval__c Checkbox If checked, submissions for this document are automatically approved when created, so no specialist review is needed. The candidate moves straight from Requested to Approved, skipping Pending Review, and the item counts as completed immediately. An explicit status supplied by a reviewer or data migration is not overwritten.
b3o__Do_Not_Auto_Close_Modal__c Checkbox If checked, the completion window stays open after the candidate finishes an item instead of closing automatically. Useful when the embedded tool shows a confirmation the candidate should read.
b3o__Do_Not_Pre_Load_Document__c Checkbox By default the app pre-loads the embedded tool for faster response. Pre-loading creates a trace/submission/submitter record up front. Check this to load the document only when the candidate actually clicks Submit, so no evidence record is created for items the candidate never opens.
b3o__Expiring_Soon_Warning_Days__c Number Number of days before a submission's expiry at which it is flagged "Expiring Soon" to the candidate. Drives the b3o__Is_Expiring_Soon__c flag on the submission.

Status and button label overrides

Every one of these is optional free text that overrides the default wording the candidate sees for that state (for example to match client terminology or a non-English language). Leaving them blank uses the standard label.

Field Overrides
b3o__Submit_Button_Label_Override__c The "Submit" button.
b3o__Edit_Button_Label_Override__c The "Edit" button.
b3o__Submitted_Button_Label_Override__c The "Re-Submit" button.
b3o__Approved_Button_Label_Override__c The "Approved" status label.
b3o__Pending_Review_Status_Override__c The "Pending Review" status label.
b3o__Rejected_Status_Override__c The "Rejected" status label.

Conditional rendering

Field Type What it does
b3o__Conditional_Rendering_Rule__c Long text (rule JSON) If blank, the document is always shown. If populated, the rule engine evaluates it against the candidate's Contact to decide whether this document appears. See below.
b3o__Show_on_Successful_Rule_Evaluation__c Checkbox Flips the meaning of the rule result. See below.

How the rule is applied. The rule is evaluated against the candidate's Contact and the document is shown according to:

shouldShow = Show_on_Successful_Rule_Evaluation__c ? rulePassed : NOT rulePassed

In plain terms:

Rule builder capabilities. Rules are authored with the native Rule Builder from Document Pack Documents Manager's visibility conditions. Groups, conditions and items can each use All, Any or a custom boolean expression. Related-record conditions support different match modes, fields can traverse lookup relationships, and date values can be relative (for example Today, Last week, Last N days or Next N days).

This is the same visibility logic that the Requested Documents rollups mirror server-side, so the counts on the assignment always match what the candidate sees. See Requested documents rollups for how visibility is materialised and counted.

External link tokens. When the target is b3o__External_Link__c, the value is a URL template. The app substitutes the candidate's context into numbered tokens before opening the frame:

Token Value
{0} Contact Id
{1} Document Id
{2} Application Id (if the assignment is related to one)
{3} URL-encoded session key

Example:

https://vendor.example.com/checks?candidate={0}&ref={1}&app={2}&sk={3}

This lets an external system be handed exactly the candidate context it needs, without exposing anything else.

b3o__Document_Assignment__c (candidate ← pack)

Assigning a pack to a candidate means creating one of these (Contact + Document Pack). It is the record recruiters watch, and the source of the progress rollups.

Field Type What it means
b3o__Contact__c Master-detail The candidate.
b3o__Document_Pack__c Master-detail The pack being assigned.
b3o__Active__c Formula (checkbox) Read-only. The assignment is served to the candidate only when Active is true. Active is true when the pack is not hidden from the candidate, a Status is set, and the Due Date is today or in the future (or blank). Past-due assignments drop out of the candidate view automatically.
b3o__Hide_from_Candidate__c Checkbox If checked, the pack is not shown to the candidate at all (feeds Active). Use to stage an assignment before releasing it.
b3o__Due_Date__c Date The candidate-facing due date. After it passes, the assignment stops being Active. Also drives the "Due In" countdown shown to the candidate.
b3o__Status__c Picklist New, Submitted, Rejected, Approved. The lifecycle status of the whole assignment.
b3o__Assignment_Message__c Rich text (HTML) An optional rich message shown to the candidate for this specific assignment (personalised instructions, welcome note).
b3o__X3B_Application__c Lookup (Application) Relates the assignment to a 3B Application (set automatically during self-enrolment via appId).
b3o__X3B_Placement__c Lookup (Placement) Relates the assignment to a 3B Placement.

Progress rollups (read-only, system maintained)

These are maintained automatically as the candidate submits and as reviewers approve, and they reflect the conditional-rendering result (only currently visible documents are counted). They are fully reportable, so recruiters can build "candidates with outstanding documents" reports directly.

Field What it counts
b3o__Requested_Documents__c Documents currently visible/required from this candidate (after conditional rendering).
b3o__Submitted_Documents__c Requested documents that have at least one submission.
b3o__Completed_Documents__c Requested documents whose latest submission is Approved and not expired.
b3o__Outstanding_Documents__c Requested minus Submitted (still needs a submission).
b3o__All_Documents_Submitted__c True when every requested document has a submission.
b3o__All_Documents_Completed__c True when every requested document is Approved and not expired. Use this as the "candidate is compliant for this pack" signal in Flow.

For how these are kept in sync (the recalculation engine, the invocable action, the mass-backfill batch, and the kill switch), see Requested documents rollups.

b3o__Document_Submission__c (what the candidate produces)

Created by the app when the candidate completes an item; you do not configure these, but the SI should understand the fields because reviewers act on them and they drive candidate-visible status.

Field Type Meaning
b3o__Status__c Picklist Pending Review (default), Approved, Rejected, Request Update. Set by reviewers; drives the badge the candidate sees. Documents with b3o__Does_Not_Require_Approval__c selected skip review and are approved automatically when the submission is created.
b3o__Public_Comments__c Text area Reviewer feedback shown to the candidate (for example why something was rejected).
b3o__Valid_Until__c Date Expiry date of the evidence (for example a certificate).
b3o__Is_Expired__c Formula True once Valid Until is in the past. An expired approved submission no longer counts as completed.
b3o__Is_Expiring_Soon__c Formula True when within the document's b3o__Expiring_Soon_Warning_Days__c of expiry.
b3o__Expiring_In_Days__c Formula Days until expiry.
b3o__Approved_Timestamp__c / b3o__Rejected_Timestamp__c / b3o__Requested_Update_Timestamp__c DateTime When each review action happened.

Each submission links to the underlying evidence produced by the embedded tool: b3o__Form_Response__c, b3o__Document_Trace__c, b3o__Candidate_Scorecard__c, b3o__Submitter__c (e-sign), and b3o__Session_Invitation__c (booking), plus back to its b3o__Document_Assignment__c and b3o__Document__c.

Access and the guest/session model

My Documents is a session app. Two access modes:

When self-enrolment creates an assignment from docPackId, it is created for the pinned/resolved contact only, a link cannot be used to enrol someone else.

Remember to grant any new objects or fields you add to the Onboarding_Admin_Full_Permission permission set.