The ClickTerm Web SDK uses Promises to communicate results. TheDocumentation Index
Fetch the complete documentation index at: https://docs.clickterm.com/llms.txt
Use this file to discover all available pages before exploring further.
show() and showAcceptedContent() methods return promises that resolve on success and reject on error.
Show result
WhenClicktermDialog.show() resolves:
Possible outcomes
| Outcome | What happens |
|---|---|
| User accepts | Promise resolves with a Signature — send it to your backend |
| User declines | Promise resolves with a Signature — verify it to record the decline |
| User already accepted | Promise resolves with null Signature — no dialog was shown |
| Error | Promise rejects with an error message |
A
null Signature means the user has already accepted the latest major version.
No action is needed on your part.Error handling
Errors are returned via the Promise.catch() handler:
| Error | Cause |
|---|---|
| SDK not initialized | ClicktermClient.initialize() was not called |
| Template not found | Template is disabled or has no effective version |
| Network error | Cannot reach the ClickTerm API |
Using async/await
Inline mode callbacks
Inline mode uses a different callback pattern. Instead of a single Promise fromshow(), you get:
onChangecallback — fires every time the checkbox state changes (passed via options torenderInline())finalize()Promise — resolves when the agreement is submitted to the backend

