show() and showAcceptedContent() methods return promises that resolve on success and reject on error.
Show result
WhenClicktermDialog.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:
Using async/await
Inline mode callbacks
Inline mode uses a different callback pattern. Instead of a single Promise fromshow(), you get:
onLoading/onReady/onErrorcallbacks — lifecycle hooks around the initial render, added in Web SDK2.5.0onChangecallback — fires every time the checkbox state changes (passed via options torenderInline())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.
