Customization
Language, profile data, risk topics, onboarding, and compact mode.
Each option below works with the script embed as an HTML attribute and with the JS API as a property. Each example shows both versions; use only the one that matches your integration.
The examples on this page use await; run them inside an async function or a <script type="module">.
Language
<script … app-language="de"></script>const xundApp = await XUND.hc.init({ …, appLanguage: 'de' })Accepted values: en, de, de-formal, hu, it, it-formal, nl, nl-formal, fr, fr-formal. When a language is set, the language selector in the side menu is hidden. Content is fully finalized in en, de, and de-formal; other languages are accepted, but confirm coverage with XUND before relying on them.
Profile data
Prefill what you already know about the person, so the app does not ask for it:
<script … age="45" sex="female" height="168" weight="64"></script>const xundApp = await XUND.hc.init({
…,
customization: { age: 45, sex: 'female', height: 168, weight: 64 },
})| Option | Values |
|---|---|
age | A number from 18 to 100. |
gender | male or female (case does not matter). |
sex | male or female. |
height | Height in cm, from 50 to 260. |
weight | Weight in kg, from 20 to 500. |
In HTML attributes, values outside these ranges are ignored; with the JS API, pass values within these ranges.
Risk topics
Start the check with the given risk topics:
<script … risk-topics="TOPIC-ID-1,TOPIC-ID-2"></script>const xundApp = await XUND.hc.init({ …, customization: { riskTopics: ['TOPIC-ID-1', 'TOPIC-ID-2'] } })In the HTML attribute, separate the ids with commas. XUND provides the risk topic ids for your integration.
Onboarding
The app shows an onboarding page before the check by default. To skip it:
<script … onboarding="false"></script>const xundApp = await XUND.hc.init({ …, customization: { onboarding: false } })Compact mode
Hide the logo and the menu in the app's header, for example when your page already has its own header:
<script … compact-mode="true"></script>const xundApp = await XUND.hc.init({ …, customization: { compactMode: true } })Last updated on