# Quiz completion

A quiz completion block changes its state when the quiz it linked to is completed.

The example: green and red boxes are linked to quizzes below.\
They change the color (also can image) on quizzes completions:

<figure><img src="/files/fO3XBfgfcy70WlzDxTlm" alt=""><figcaption></figcaption></figure>

## State parameters

The block have two states for “quiz completed” and “quiz not completed”.

On state change, the following parameters can be changed:

* background color;
* border (width, color, border radius);
* background image.

## How to link quiz completion to quiz?

To link quiz completion block to quiz:

1. Go to required quiz.
2. Go to “content” tab.
3. Copy quiz ID (make sure you are coping not block ID).
4. Insert quiz ID into quiz completion block:

<figure><img src="/files/RKaJpvw6zFHX9IKsmuF8" alt=""><figcaption></figcaption></figure>

***

Something unclear in docs or you know how to improve article? [Message us in community!](https://docs.tgtaps.com/tgtaps-docs/readme/community)\
We will answer you and then promise to improve the article within 3 days.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tgtaps.gitbook.io/tgtaps-docs/blocks/quizes/quiz-completion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
