> For the complete documentation index, see [llms.txt](https://tgtaps.gitbook.io/tgtaps-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tgtaps.gitbook.io/tgtaps-docs/blocks/quizes/quiz-completion.md).

# 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="https://923504530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4Ussb0ib5NljSmRt4570%2Fuploads%2FnfzWotnDW3JMYDx3WJh3%2Fchrome_bykYlF38xQ.gif?alt=media&amp;token=c7a8be0a-e587-4ac0-8326-5a9d4d6f8783" 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="https://923504530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4Ussb0ib5NljSmRt4570%2Fuploads%2FaplhqUsDVlHCnS9yT6Z7%2Fchrome_rh4zw06eQ3.gif?alt=media&amp;token=4c2648d4-84eb-4702-8649-9118d0d2ad73" 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.
