Assessment preview (scorecard viewer)

Assessment preview (scorecard viewer)

What it is

Assessment preview is the read-only viewer for a completed assessment. Given a Candidate Scorecard (b3o__Candidate_Scorecard__c), it reloads the original assessment (the same questions, layout, theme and branding the candidate saw) and overlays the candidate's saved answers, then renders the whole thing in a display-only mode. Nothing is editable, no scoring is re-run and no records are written. It is the "view submission" surface for an assessment result.

It is the reviewer-facing companion to Assessment complete (the candidate runner), and both apps share the same Candidate Scorecard object. It is used across every vertical b3o serves, wherever an assessment result needs to be reviewed: Healthcare competency checks, Education safeguarding tests, Blue-collar inductions.

The problem it solves

Once a candidate has completed an assessment, a recruiter or compliance reviewer needs to see exactly what was answered, in the original question layout and branding, without being able to change anything and without exposing an editable form. A raw list of answer records is hard to read and loses the context of the questions. Assessment preview reconstructs the assessment faithfully with the candidate's answers in place, so a reviewer can:

Who uses it

It is not an authoring or grading tool. Building the assessment is done in Assessment manager; taking it is done in Assessment complete.

How it is surfaced

Placement What to use
Visualforce page (standalone) The managed PreviewAssessment Visualforce page hosts the viewer. Open it with a scorecard Id to render that submission.
The scorecard record The Candidate Scorecard's b3o__View_Response__c field is a View Response ("Click Here") hyperlink that opens the PreviewAssessment page for that record in a new tab. This is the quickest way for internal staff to view a submission from the scorecard.
Inside My Documents / review flows The same page is opened from the onboarding "view submission" action when a reviewer or candidate looks at a completed assessment document. See User documents.
3B Portals / Digital Experience Present the PreviewAssessment page inside a Portals page or Experience Cloud page for guest reviewers or candidates (a valid session key is required, see Access below).

Runtime parameters

URL parameter Purpose
id The b3o__Candidate_Scorecard__c Id to render (required).
conId Contact Id for the viewing context (required for guest/session access).
sessionKey Guest session key for the contact. Required for guest/portal access, see Access below.

When the scorecard belongs to a Smart Session, the page opens its transcript. Internal reviewers can see scores, flags and summaries. Candidates see their own questions and answers.

What it renders

On load the viewer:

Because it rebuilds the original assessment rather than reading normalised answer rows, it always matches exactly what the candidate saw.

Configuration

There is no custom metadata type specific to this viewer. The rendered content comes from the Question Set and the scorecard's stored answers, so the only configuration is the assessment itself (authored in Assessment manager) and the org-level host settings.

The PreviewAssessment page reads the b3o__Onboarding_Default_Settings__c custom setting for b3o__Site_URL__c (required, the page warns if it is unset), b3o__Customer_Logo__c and b3o__Files_Endpoint__c.

Access and the guest/session model

Assessment preview is a session app. Two access modes:

The viewer only reads, it never writes.

Reads

Object What is read
b3o__Candidate_Scorecard__c The entry-point record. The viewer reads its Id, Name, b3o__Question_Set__c and b3o__Version_ID__c to locate the assessment and version, plus the answer content stored as a file on the record.
b3o__Question_Set__c The assessment definition (questions, b3o__Passing_Score__c, b3o__Finish_Blurb__c) and its attached content.

Scorecard fields a reviewer sees

The Candidate Scorecard carries the reportable result the reviewer acts on. These are written by Assessment complete and derived by Salesforce, the preview does not change them.

Field Meaning
b3o__Contact__c The candidate.
b3o__Question_Set__c The assessment taken.
b3o__Tally_Up_Score__c (labelled Score) The candidate's total score, summed from the per-question scores.
b3o__Result__c Pass or Fail versus the Question Set's b3o__Passing_Score__c.
b3o__Actual_Start_Time__c / b3o__Actual_End_Time__c Start and finish timestamps (time taken).
b3o__Version_ID__c The content version the candidate answered (the version the preview reconstructs).
b3o__X3B_Application__c The related 3B Application, if any.
b3o__View_Response__c The View Response link that opens this viewer.
b3o__Score__c / b3o__Total_Score__c Legacy (DNU) roll-ups over the older b3o__Question_Response__c model. Use b3o__Tally_Up_Score__c and b3o__Result__c instead.

The structured per-question results (b3o__Assessment_Response__c, one row per question, with b3o__Is_Correct__c, b3o__Score__c, b3o__Max_Score__c and the answer in b3o__Display_Value__c) sit behind the scorecard for reporting. The preview itself renders from the stored answer content rather than these rows. See Assessment complete for the full response model.

Writes

None. This app is read-only.

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