Skip to main content

ClickwrapTemplate parameters

clickwrapTemplateId
String
required
Template ID from the ClickTerm dashboard.
endUserId
String
required
Your identifier for the end user (max 256 chars).
templatePlaceholders
Map<String, Object>
Key-value pairs for placeholder substitution. See Template placeholders for the full list.
languageCode
String
Language code for template content and UI strings. See supported languages below.

Dialog configuration

The third parameter of ClicktermDialog.show() accepts a nullable JSONObject with configuration options:
disableClose
boolean
default:"false"
When true, the user cannot close the dialog without accepting or declining.
JSONObject config = new JSONObject();
config.put("disableClose", true);

ClicktermDialog.show(this, request, config,
    new ClicktermDialog.OnAgreementResultListener() {
        @Override
        public void onSuccess(String clicktermSignature) {
            // Handle result
        }

        @Override
        public void onError(String message) {
            // Handle error
        }
    }
);
Pass null as the config parameter to use defaults:
ClicktermDialog.show(this, request, null, listener);

Visual customization

Starting from SDK version 2.1, dialog appearance is customized from the ClickTerm Dashboard — no code-level configuration needed. Settings apply at the template level across all versions.

Placeholder values

Pass placeholder values as a Map<String, Object>:
Map<String, Object> placeholders = new HashMap<>();
placeholders.put("fullName", "Alice Example");
placeholders.put("email", "[email protected]");
placeholders.put("company", "Acme Corp");
placeholders.put("jobTitle", "Senior Counsel");
placeholders.put("phoneNumber", "+12025550123");
placeholders.put("registrationNumber", "HRB 123456");
placeholders.put("vatNumber", "GB123456789");
placeholders.put("address", "221B Baker St\nLondon NW1");
placeholders.put("custom1", "Region: EMEA");
placeholders.put("custom2", "Plan: Enterprise");
placeholders.put("custom3", "PO: 12345-XYZ");
placeholders.put("custom4", "Support Rep: Eve");
placeholders.put("custom5", "Campaign: Spring24");
See Template placeholders for the full list of available placeholders with types and validation rules.
The date placeholder is auto-generated by ClickTerm. Client-provided values are ignored.

Supported languages

The languageCode 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.
CodeLanguageCodeLanguage
bg🇧🇬 Bulgarianhu🇭🇺 Hungarian
cs🇨🇿 Czechit🇮🇹 Italian
de🇩🇪 Germannl🇳🇱 Dutch
el🇬🇷 Greekno🇳🇴 Norwegian
en🇬🇧 Englishpl🇵🇱 Polish
es🇪🇸 Spanishpt🇵🇹 Portuguese
fi🇫🇮 Finnishro🇷🇴 Romanian
fr🇫🇷 Frenchru🇷🇺 Russian
hi🇮🇳 Hindisr🇷🇸 Serbian
sv🇸🇪 Swedishuk🇺🇦 Ukrainian
zh🇨🇳 Chinese (Simplified)
ClickTerm does not auto-translate your content. Create localized template content in the ClickTerm UI for every language you plan to support.