Skip to main content

Dialog options

Passed as the first argument to ClicktermDialog.show():
endUserId
string
required
Your identifier for the end user (max 256 chars).
clickwrapTemplateId
string
required
Template ID from the ClickTerm dashboard.
templatePlaceholders
object
default:"{}"
Structured placeholder object. Supports standard fields like fullName, email, company, jobTitle, date, phoneNumber, registrationNumber, vatNumber, address, plus customPlaceholders for user-defined keys. See Template placeholders for the full list.
language
string
default:"Template default"
Language code for template content and UI strings. See supported languages.

Dialog configuration

Passed as the optional second argument to ClicktermDialog.show():
disableClose
boolean
default:"false"
When true, the user cannot close the dialog without accepting or declining.

Visual customization

Starting from SDK version 2.1, the clickwrap dialog appearance is customized directly from the ClickTerm Dashboard — no SDK configuration needed. Settings are managed at the template level and apply to all versions.

Supported languages

The language parameter determines both the template content language and UI strings (buttons, prompts, labels). If omitted or unsupported, the default language configured in the ClickTerm UI is used. See supported languages for the full list of language codes.

Inline options

Starting from SDK v2.2.0, the SDK supports inline mode via ClicktermDom.renderInline(). Inline mode accepts the same endUserId, clickwrapTemplateId, templatePlaceholders, and language fields as dialog mode, plus additional options: For the full inline API reference and styling options, see ClicktermDom.