# Callbacks

{% hint style="info" %}
To use the Web SDK please [install ](https://docs.getcomplied.com/how-to-install)the snippet first.
{% endhint %}

| Action           | Description                                                                          | Example                                                                            | Data                                     |
| ---------------- | ------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- | ---------------------------------------- |
| Initialize       | Triggers when GetComplied is initialized                                             | `getComplied.callback.oninit = function(){ /* your code goes here */ }`            |                                          |
| Load             | Triggers when GetComplied loads documents and user permissions                       | `getComplied.callback.onload = function(data){ /* your code goes here */ }`        | Consents list                            |
| Open             | Triggers when GetComplied is openned                                                 | `getComplied.callback.onopen = function(){ /* your code goes here */ }`            |                                          |
| Close            | Triggers when GetComplied is closed                                                  | `getComplied.callback.onclose = function(){ /* your code goes here */ }`           |                                          |
| Language change  | Triggers when user changes language                                                  | `getComplied.callback.onlangchange = function(data){ /* your code goes here */ }`  | language code ("en-GB", "pt-PT"...)      |
| Save             | Triggers when user approves consents                                                 | `getComplied.callback.onsave = function(data){ /* your code goes here */ }`        | Consents list                            |
| Input initialize | Triggers when an input is initialized                                                | `getComplied.callback.oninputinit = function(data){ /* your code goes here */ }`   | InputName                                |
| Input change     | Triggers when user changes his consent                                               | `getComplied.callback.oninputchange = function(data){ /* your code goes here */ }` | <p>InputName<br>Value (true / false)</p> |
| Input lock       | Triggers when submit button after submission input should or should not be disabled. | `getComplied.callback.oninputlock = function(data){ /* your code goes here */ }`   | <p>InputName<br>Lock (true / false)</p>  |
