Either osd (a URL to a .osd bundle) or scale is required.
Option A — remote .osd bundle (OSF, GitHub, GitLab, personal site):
scale-runner.html?osd=https://osf.io/abc123/download&lang=en&participant=p001
Option B — locally-hosted split files:
scale-runner.html?scale=PHQ9&base=../scales&participant=test001
| Parameter | Required | Description |
|---|---|---|
osd | One of osd or scale | Full URL to a .osd bundle file. Works with OSF, GitHub raw, GitLab raw, or any web server. When provided, scale and base are ignored. |
scale | One of osd or scale | Scale code when using locally-hosted split files (e.g. PHQ9). |
base | No | Base URL for split-file scale directories (default: ../scales). Ignored when osd is set. |
participant | No | Participant ID (default: random) |
lang | No | Language code (default: en). Falls back to en if the requested language is not in the bundle. |
collect | No | POST endpoint URL for saving results (e.g. server/collect.php) |
token | No | peblhub authentication token |
redirect | No | URL to redirect to after completion |
demo | No | Demo mode — disables data saving; pass demo=1 |
showtitle | No | Show scale name in header (default: 1); pass showtitle=0 to hide |