# Looking for a plugin that only allows you to go to the next card if you answer correctly

**URL:** <https://forums.ankiweb.net/t/looking-for-a-plugin-that-only-allows-you-to-go-to-the-next-card-if-you-answer-correctly/47112>\
**Category:** Add-ons\
**Created:** [July 16, 2024, 3:45am UTC](https://forums.ankiweb.net/t/looking-for-a-plugin-that-only-allows-you-to-go-to-the-next-card-if-you-answer-correctly/47112 "2024-07-16T03:45:49Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 16, 2024, 4:53pm UTC](https://forums.ankiweb.net/t/looking-for-a-plugin-that-only-allows-you-to-go-to-the-next-card-if-you-answer-correctly/47112/9 "2024-07-16T16:53:07Z")

</div>

I was prompted with an alternative to the addon.

[How to have instant type:answer feedback?](https://forums.ankiweb.net/t/how-to-have-instant-type-answer-feedback/21259/14?u)  
[![Imgur](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/b/c/bc43689eae4a4bed270626dc13001ba357ffa850.png "imgur.com") ](https://imgur.com/YnIqLCt)  
[![Imgur](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/f/c/fc816d496275d6964d6c787cca0d2b77b10afaae.png "imgur.com") ](https://imgur.com/pOdPJKa)  
[![Imgur](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/a/a/aa26fcc0deb682b2127230b061686ef943a45545.png "imgur.com") ](https://imgur.com/YW5tTnD)

> **Template**
>
> Front Template
> 
> ```auto
> {{Front}}
> 
> {{type:Back}}
> 
> <div id="answer-field" hidden>{{Back}}</div>
> 
> <script>
> (() => {
> /**
> * Type-in-the-answer live feedback for Anki (vague variant)
> * @author Matthias Metelka | @kleinerpirat
> */
> const input = document.getElementById("typeans");
> const answer = document.getElementById("answer-field").innerHTML;
> if (input) {
> input.addEventListener("input", () => {
> input.classList.add("typed");
> input.classList.toggle(
> "goodsofar",
> input.value == answer.substring(0, input.value.length)
> );
> input.classList.toggle(
> "correct",
> input.value == answer
> );
> });
> }
> })();
> </script>
> 
> ```
> 
> Back Template
> 
> ```auto
> {{Front}}
> 
> <hr id=answer>
> 
> {{type:Back}}
> 
> ```
> 
> Styling
> 
> ```auto
> .card {
> font-family: arial;
> font-size: 20px;
> text-align: center;
> color: black;
> background-color: white;
> }
> 
> #typeans.typed {
> background: red;
> }
> #typeans.typed.goodsofar {
> background: yellow;
> }
> #typeans.typed.correct {
> background: green;
> }
> 
> ```

---

_[View the full topic](https://forums.ankiweb.net/t/looking-for-a-plugin-that-only-allows-you-to-go-to-the-next-card-if-you-answer-correctly/47112)._
