# Hiding clozes for specific questions

**URL:** <https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569>\
**Category:** Card Design\
**Created:** [July 29, 2026, 11:56pm UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569 "2026-07-29T23:56:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoidBarbecue](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@VoidBarbecue](https://forums.ankiweb.net/u/VoidBarbecue)\
**Post date:** [July 29, 2026, 11:56pm UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/1 "2026-07-29T23:56:43Z")

</div>

hi! first time posting.

I’m trying to get the following set up for doing math’s/physics related cards:  
it consists of 3 clozes, the first two are the sides of an equation and the third one is the proof of the theorem or equation.  
my goal is to get 3 cards, 2 to test the equation itself, so that it asks c1=c2 and one to test my knowledge of the proof. problem is c3 will be displayed whenever i’m on the first 2 clozes, and often demonstrations are too large and i don’t want it to show up when the question is only about the equation itself

my current solution is to have c3 be: {{c3 :: ::proof?}} and then have the proof shown as a hint but I don’t like it since the hint appears on all 3 cards and I feel like there’s a nicer way to do this  
any help is appreciated! thanks!

---

<div class="post-metadata">

**Author:** ![ZornHadNoChoice](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/zornhadnochoice/32/28874_2.png) [@ZornHadNoChoice](https://forums.ankiweb.net/u/ZornHadNoChoice)\
**Post date:** [July 30, 2026, 12:20am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/2 "2026-07-30T00:20:11Z")

</div>

You can make a new note type which works exactly like you want. Just read the [key concepts](https://docs.ankiweb.net/getting-started.html#key-concepts) or search online for tutorials about note types.

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [July 30, 2026, 2:52am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/4 "2026-07-30T02:52:35Z")

</div>

You might also want to consider doing this based on a regular note type instead of a cloze one. Since you have a fixed amount of card types with strictly defined roles, clozes might not be the best fit for the purpose.

---

<div class="post-metadata">

**Author:** ![VoidBarbecue](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@VoidBarbecue](https://forums.ankiweb.net/u/VoidBarbecue)\
**Post date:** [July 30, 2026, 3:22am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/5 "2026-07-30T03:22:57Z")

</div>

well now i feel dumb lol. spent all night yesterday trying to get it to work and could’t figure it out.  
i had a better read at [card generation (bottom part on clozes)](https://docs.ankiweb.net/templates/generation.html) after you told me and it was very easy so i’ll share in case anyone else has a use for this.

needs 2 fields (i also added one for a question because i might use it)  
first one is where you would write the 3 clozes and the second one shows the proof

 ![Screen Shot 2026-07-30 at 00.13.22](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/a/8/a8dd13df1e990cff62b404204f7633117d1878bd.png)

here’s the code (paste onto a cloze card type)  
front:

```auto
{{question}} <br> <br>

{{cloze:clozes}}

<! -- next part is just for the tags to show up -->

<br><br><br> <div style='font-family: "Helvetica"; font-size: 10px; color: brown'>{{Tags}}</div>

```

and back:

```auto
{{question}}

<br> <br>

{{cloze:clozes}}

<! -- this following part makes the "proof" field show up only on the 3rd cloze card -->

{{#c3}}

  <div style =' color: cyan' >{{proof}}

{{/c3}}

<br><br><br><br>

<! -- next part is just for the tags to show up -->

<div style='font-family: "Helvetica"; font-size: 10px; color: brown'>{{Tags}}</div>

```

so here’s how both of the “equation” questions look like (c1 and c2)

 ![Screen Shot 2026-07-30 at 00.07.12](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/3/334e9e27d511a6d12881039563ba308e42e9a82f.png) ![Screen Shot 2026-07-30 at 00.07.03](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/6/363b8650892e6ade086b4d4d39a389517536bbf9.png)

 ![Screen Shot 2026-07-30 at 00.07.12](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/3/334e9e27d511a6d12881039563ba308e42e9a82f.png) ![Screen Shot 2026-07-30 at 00.07.03](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/6/363b8650892e6ade086b4d4d39a389517536bbf9.png)

and here’s the proof one

 ![Screen Shot 2026-07-30 at 00.07.25](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/c/7/c769ac0b3540e838d905bc7475b00f2695d6e9c3.png) ![Screen Shot 2026-07-30 at 00.07.33](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/d/ed0685944a756f214085115db3494efacc5d0ee0.png)

---

<div class="post-metadata">

**Author:** ![VoidBarbecue](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@VoidBarbecue](https://forums.ankiweb.net/u/VoidBarbecue)\
**Post date:** [July 30, 2026, 3:26am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/6 "2026-07-30T03:26:10Z")

</div>

oh absolutely, i use regular ones when needed, i just wanted this type of note because about half of my cards are “theorem” and then a separate “proof” one and this just speeds up the proces a bunch. thanks!

---

<div class="post-metadata">

**Author:** ![ZornHadNoChoice](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/zornhadnochoice/32/28874_2.png) [@ZornHadNoChoice](https://forums.ankiweb.net/u/ZornHadNoChoice)\
**Post date:** [July 30, 2026, 5:04am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/7 "2026-07-30T05:04:46Z")

</div>

That’s not the solution I had in mind (I agree with Eltaurus) which would be much more efficient and cleaner.

---

<div class="post-metadata">

**Author:** ![VoidBarbecue](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@VoidBarbecue](https://forums.ankiweb.net/u/VoidBarbecue)\
**Post date:** [July 30, 2026, 6:18am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/8 "2026-07-30T06:18:03Z")

</div>

i guess i missunderstood Eltarus meant? that i should create a basic note type and edit from there?

i did’t quite get which note type you were refering to. what was it you had in mind?

---

<div class="post-metadata">

**Author:** ![ZornHadNoChoice](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/zornhadnochoice/32/28874_2.png) [@ZornHadNoChoice](https://forums.ankiweb.net/u/ZornHadNoChoice)\
**Post date:** [July 30, 2026, 6:34am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/9 "2026-07-30T06:34:37Z")

</div>

Any note type that isn’t a copy of cloze or image occlusion would do, but Basic is the easiest to edit.

You can have fields for Question, Left side, Right side, and Proof. Then make 2 additional card types and fill their templates as you like.

You wouldn’t need the cloze brackets anymore, nor would you need to type “proof?”.

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [July 30, 2026, 6:44am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/10 "2026-07-30T06:44:15Z")

</div>

> [@ZornHadNoChoice](#):
>
> Left side, Right side

Also these two can be merged into a single field for brevity and split with JS on the template itself at the equal sign (or at a specially inserted breaking character).

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [July 30, 2026, 7:12am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/11 "2026-07-30T07:12:58Z")

</div>

> [@Eltaurus](#):
>
> (or at a specially inserted breaking character)

Since MathJax allows marking elements with custom classes, it can be used for this purpose too:

```LaTeX
\(K_e\class{sep}{=}\frac{mv^2}{2}\)

```

Then either part of a formula can be extracted as:

```HTML
Full equation:
<p>
    {{Equation}}
</p>

Left-hand side:
<p class="lhs">
    {{Equation}}
</p>

Right-hand side:
<p class="rhs">
    {{Equation}}
</p>

```

with the following styles:

```CSS
.lhs .sep,
.lhs .sep ~ * {
    display: none;
}

.rhs .sep,
.rhs :has(> .sep) > *:not(.sep ~ *):not(.sep) {
    display: none;
}

```

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/b/9/b98a50f0294babe6a1f18b3b8422ff97f9ccdb6a.png)

---

<div class="post-metadata">

**Author:** ![VoidBarbecue](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@VoidBarbecue](https://forums.ankiweb.net/u/VoidBarbecue)\
**Post date:** [July 31, 2026, 12:24am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/12 "2026-07-31T00:24:38Z")

</div>

ohh! yeah that’s cleaner lol. i didn’t know you could tell anki to make multiple cards simply trough the options in card type (basic, i know, but i didn’t understand it when i read it)

> [@Eltaurus](#):
>
> Then either part of a formula can be extracted as:

this is huge, thanks!

i got it to work after a while and i’m very happy with the result  
thanks you two, i learned a lot!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [August 30, 2026, 12:25am UTC](https://forums.ankiweb.net/t/hiding-clozes-for-specific-questions/70569/13 "2026-08-30T00:25:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
