Skip to main content
The ClickTerm Web SDK uses Promises to communicate results. The show() and showAcceptedContent() methods return promises that resolve on success and reject on error.

Show result

When ClicktermDialog.show() resolves:

Possible outcomes

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:
Common error scenarios:

Using async/await


Inline mode callbacks

Inline mode uses a different callback pattern. Instead of a single Promise from show(), you get:
  • onLoading / onReady / onError callbacks — lifecycle hooks around the initial render, added in Web SDK 2.5.0
  • onChange callback — fires every time the checkbox state changes (passed via options to renderInline())
  • finalize() Promise — resolves when the agreement is submitted to the backend
onError is a notification for updating your UI. renderInline() still rejects on failure, so keep handling that rejection too. A callback that throws is caught and logged by the SDK rather than failing the render.
For full details, see the ClicktermDom API reference and inline lifecycle callbacks.