Pages
A "page" refers to the displayed step a candidate takes in order to navigate through a questionnaire. Currently, Honey supports configuration for these page keys:
welcomequestionnaireeligibleineligibleleaveclinicFormsiteSelectorcontactDetailscompleted
These keys are referenced in the questionnaire configuration in two places:
- In
config.steps, which defines the order in which the pages are displayed in a happy flow for the user. If the study has no steps configured,config.stepsdefaults toquestionnaire,siteSelector,contactDetails,completed. - In the keys of
config.customPages, where custom text can be configured in place of the translations provided bymessages.
Placeholders
The text and subText of each page in config.customPages can contain placeholders in the form ${name}, for example An email has been sent to ${email}. Replace them with the candidate's values before displaying the page. If a value is missing, replace the placeholder with an empty string.
| Placeholder | Value | Where to get it |
|---|---|---|
${candidateId} | The candidate's ID in Trialbee Honey | candidateId in the response to POST /rest/v1/candidates/{candidateId} (submit) |
${name} | Candidate's name | Your contact details form |
${email} | Candidate's email | Your contact details form |
${encodedEmail} | Candidate's email, URL-encoded | Your contact details form |
${phone} | Candidate's phone number | Your contact details form |
${siteName} | Name of the selected site | sites[].name from GET /rest/v1/candidates/{candidateId}/eligibility |
${siteAddress} | Address of the selected site | sites[].address from GET /rest/v1/candidates/{candidateId}/eligibility |
${sitePhone} | Phone number of the selected site | sites[].phone from GET /rest/v1/candidates/{candidateId}/eligibility |
${inboundProxyNumber} | Trialbee phone number for candidates | inboundProxyNumber from GET /rest/v1/candidates/questionnaires/{studyId} |
${publicStudyName} | Public name of the study | study.publicStudyName from GET /rest/v1/candidates/questionnaires/{studyId} |
${supportEmail} | Trialbee support email | support@trialbee.com |
Flow example
Page summaries
welcome
The welcome page, displayed when the candidate opens the questionnaire. Relevant messages in messages.Welcome.*.

questionnaire
The page where the questions are being displayed. Relevant messages in messages.Questionnaire.*.

eligible
The page where the candidate is informed that they are eligible for the study. Relevant messages in messages.Elegible.* (sic).

ineligible
The page where the candidate is informed that they are ineligible for the study. Relevant messages in messages.NotEligible.*.

leave
The confirmation page displayed when the candidate exits the questionnaire. Relevant messages in messages.Modal.*.

clinicForm
The page where the candidate can choose the most suitable site for them, if applicable. Deprecated in favor of siteSelector. Relevant messages in messages.ClinicForm.*.
siteSelector
The page where the candidate can choose the most suitable site for them, if applicable. Relevant messages in messages.SiteSelector.*.

contactDetails
The page where the candidate enters contact details. Relevant messages in messages.ContactDetails.*.

completed
The page displayed when the candidate has completed all required steps. Relevant messages in messages.Registration.* and messages.RegistrationComplete.*.
