Assessment complete (candidate runner)

Assessment complete (candidate runner)

What it is

Assessment complete is the candidate-facing runtime that delivers a scored assessment to a candidate and records the result. The candidate answers the questions defined in a Question Set (b3o__Question_Set__c), and on completion the app creates a Candidate Scorecard (b3o__Candidate_Scorecard__c) plus one response record per question. It is the "candidate takes the test" half of the Assessments feature in 3B Onboarding (b3o).

It is used across every vertical b3o serves: Healthcare (clinical knowledge and competency checks, mandatory-training quizzes), Education (safeguarding knowledge, subject tests), Blue-collar and Misc (health and safety inductions, ticket/qualification checks). The same runner drives all of them, because the questions, scoring and pass mark are defined entirely in configuration, not in code.

It has two companions that share the same Candidate Scorecard object:

The problem it solves

Staffing and credentialling teams frequently need to verify a candidate's knowledge or competency before placement, and they need the result to be a structured, reportable record rather than a PDF or an email. Assessment complete gives you:

Because it is a public app, it can be presented to invited or anonymous candidates without a licensed Salesforce user.

Who uses it

A Question Set marked Is Smart Session opens a guided AI chat on the same SubmitAssessment page. See Smart Sessions for its link parameters, questions and scoring.

How it is surfaced

Placement What to use
Visualforce page (standalone) The managed SubmitAssessment Visualforce page hosts the runner directly. Use this when you want a URL to hand out (email, SMS, iframe) that opens a specific assessment.
Inside My Documents When a b3o__Document__c in a Document Pack targets a Question Set (its b3o__Question_Set__c lookup is set), My Documents opens this runner in place when the candidate clicks Submit. This is the most common way candidates reach it. Completion links the scorecard back to the requested document automatically.
3B Portals Present the SubmitAssessment page inside a 3B Portals page for guest candidates (a valid session key is required, see Access below).
Digital Experience Embed the SubmitAssessment page in an Experience Cloud page for community candidates.

Runtime parameters

However it is placed, the runner accepts the following inputs. On the SubmitAssessment page they are URL parameters.

URL parameter Purpose
conId Contact Id of the candidate taking the assessment (required). Every record written is stamped to this contact.
sessionKey Guest session key for the contact. Required to save a submission from a guest/portal context, see Access below.
qsId The b3o__Question_Set__c Id to run (required). Determines the questions, scoring and pass mark.
versionId A specific published version of the assessment content to run (optional). Stored on the scorecard as b3o__Version_ID__c so you can tell which version a candidate answered.
docId The requested b3o__Document__c Id when the assessment is being taken as part of a Document Pack (optional). Used to link the scorecard back to the onboarding requirement.
appId A 3B Application Id (optional). Stamped onto the scorecard's b3o__X3B_Application__c.
key An optional assessment key for the launch context.
jobId An optional job context.
shortListId An optional shortlist context.

Scoring, timing and pass/fail

Scoring is defined when the assessment is authored in Assessment manager: each answerable question carries a maximum score, and correct answers are defined. As the candidate progresses, the runner evaluates each answer, records the score earned and whether it was correct, and captures the moment the candidate started and finished.

The result is derived on the Candidate Scorecard by standard Salesforce roll-ups and a formula (no Apex is involved in the pass decision):

Timing behaviour (for example a countdown or a per-page limit) is part of the authored assessment content, so a "timed" assessment is configured in Assessment manager rather than on this runner.

Configuration

b3o__Question_Set__c (the assessment definition)

One record per assessment. The questions, theme and languages are authored in Assessment manager and stored as content attached to this record. The fields an SI sets directly are:

Field Type What it does
Name Text The assessment title.
b3o__Passing_Score__c Number The pass mark. The candidate passes when their total score reaches this number. Drives b3o__Result__c on every scorecard for this set.
b3o__Finish_Blurb__c Rich text (HTML) The message shown to the candidate on the completion screen (for example "Thank you, your assessment has been recorded").
b3o__External_Id__c Text Optional external identifier for integration/keying.

To make an assessment part of onboarding, create a b3o__Document__c in a Document Pack whose b3o__Question_Set__c points at this record. See User documents.

Assessment content

The questions, answer options, per-answer scores, theme/branding and any additional languages are authored in Assessment manager and stored as content attached to the Question Set. The runner loads that content at start-up. A language selector appears automatically when the assessment declares more than one language. There is no custom metadata type specific to this runner.

Host settings

The SubmitAssessment 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. Set these once per org.

Access and the guest/session model

Assessment complete is a public app, so an invited or anonymous candidate can open and complete an assessment without a licensed Salesforce user.

Writes

Object When Notes
b3o__Candidate_Scorecard__c On completion The submission header. See fields below. The raw answer set is also stored as a file attached to the scorecard.
b3o__Assessment_Response__c One per answered question Child of the scorecard (b3o__Scorecard__c) and of the Question Set. Captures the per-question result. See fields below.
b3o__Document_Submission__c Downstream, by the scorecard trigger Created automatically when the Question Set was a requested onboarding document, linking the scorecard into the candidate's Document Assignment so the requested item is marked submitted.

b3o__Candidate_Scorecard__c fields

Field Type Meaning
b3o__Contact__c Master-detail The candidate.
b3o__Question_Set__c Lookup (required) The assessment that was taken.
b3o__Version_ID__c Text The published content version the candidate answered.
b3o__Actual_Start_Time__c DateTime When the candidate began.
b3o__Actual_End_Time__c DateTime When the candidate finished. Together with start time this gives time taken.
b3o__Tally_Up_Score__c Roll-up (labelled Score) Sum of the per-question scores.
b3o__Result__c Formula (text) Pass or Fail versus b3o__Question_Set__r.b3o__Passing_Score__c.
b3o__X3B_Application__c Lookup (Application) The related 3B Application, when launched with appId.
b3o__View_Response__c Formula (link) A "Click Here" hyperlink that opens the read-only Assessment preview for this scorecard.
b3o__Score__c / b3o__Total_Score__c Roll-up Legacy fields, labelled Score (DNU) / Total Responses (DNU) ("do not use"). They summarise the legacy b3o__Question_Response__c records rather than the current response object. Report on b3o__Tally_Up_Score__c and b3o__Result__c instead.

There is no picklist status field on the scorecard; the pass/fail state is b3o__Result__c, and the onboarding status of the requirement lives on the linked b3o__Document_Submission__c.

b3o__Assessment_Response__c fields (one per question)

Field Type Meaning
b3o__Scorecard__c Master-detail The parent scorecard.
b3o__Question_Set__c Master-detail The assessment.
b3o__Identifier__c Text Unique question identifier.
b3o__Type__c Picklist The question type (for example boolean, checkbox, dropdown, radiogroup, rating, ranking, matrix, text, comment, file, signaturepad, image).
b3o__Question_Title__c Text area The question as shown to the candidate.
b3o__Question_Description__c Long text The question's supporting description.
b3o__Display_Value__c Rich text The candidate's answer, formatted for display.
b3o__Correct_Answer__c Long text The defined correct answer, where one exists.
b3o__Is_Correct__c Checkbox Whether the candidate answered correctly.
b3o__Max_Score__c Number The maximum score obtainable for this question.
b3o__Score__c Number The score the candidate earned. Rolls up to the scorecard's b3o__Tally_Up_Score__c.
b3o__Is_Required__c Checkbox Whether the question was required.
b3o__Response_Comment__c Long text Any comment captured with the answer.

File and signature answers upload their content as files attached to the response record.

Legacy b3o__Question_Response__c

b3o__Question_Response__c (with its b3o__Selected_Response_Option__c children) is the older per-question response model. It is retained for backward compatibility and is cascade-deleted when a scorecard is deleted. New assessments use b3o__Assessment_Response__c as described above.

Reads

The Question Set definition and its attached content, and the candidate's Contact.

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