# Conditional field with "type:"

**URL:** <https://forums.ankiweb.net/t/conditional-field-with-type/66169>\
**Category:** Help\
**Created:** [August 28, 2025, 6:15pm UTC](https://forums.ankiweb.net/t/conditional-field-with-type/66169 "2025-08-28T18:15:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zZH2z](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/zzh2z/32/23935_2.png) [@zZH2z](https://forums.ankiweb.net/u/zZH2z)\
**Post date:** [August 28, 2025, 6:15pm UTC](https://forums.ankiweb.net/t/conditional-field-with-type/66169/1 "2025-08-28T18:15:48Z")

</div>

I try to generate conditional cards base of field (EN\_FORM\_32). Anki generate cards **even if field is empty**. Not sure why - I think that this could be related with “type:”.

Tried:

- Tools → Database check
- Tools → Empty Cards…
- Remove condition from the back card

Front and back:

…  
{{#EN\_FORM\_32}}  
{{type:EN\_FORM\_32}}  
{{/EN\_FORM\_32}}  
…

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/5/8/581d6665d6a403a3bb5c1671347bcff6d4229ac6.jpeg)

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

```shell
Anki 25.08b5 (d4862e99) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: Windows-11-10.0.26100-SP0

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnkiRestart - Quick Anki Rebooter for Customize Develop Created by Shige ['237169833', 2025-06-22T04:33, 'None', mod]
Auto New Adjuster ['anki_auto_new_adjuster', 0, 'None', mod]
FSRS Helper Postpone Advance Load Balance Easy Days Disperse Siblings ['759844606', 2025-08-28T08:55, 'None', mod]
HyperTTS - Add speech to your flashcards ['111623432', 2025-08-13T16:35, 'None', mod]
Remove card history ['2089200096', 2023-10-19T05:15, 'None', '']
Search Stats Extended ['1613056169', 2025-08-27T01:57, 'None', mod]

===IDs of active AnkiWeb add-ons===
111623432 1613056169 2089200096 237169833 759844606

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Auto Button Suggestion ['anki_auto_button_suggestion', 0, 'None', '']
Card Status Bar ['anki_card_status_bar', 0, 'None', '']
Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-03-29T08:26, 'None', '']

```

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [August 28, 2025, 6:36pm UTC](https://forums.ankiweb.net/t/conditional-field-with-type/66169/2 "2025-08-28T18:36:22Z")

</div>

Try wrapping the whole Front template this way:

```auto
{{#EN_FORM_32}}

Front Template

{{/EN_FORM_32}}

```

(in your current example, the `{{#EN_FORM_32}}{{/EN_FORM_32}}` conditional only controls whether the `{{type:EN_FORM_32}}` field should be included or not)

---

<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:** [September 27, 2025, 6:36pm UTC](https://forums.ankiweb.net/t/conditional-field-with-type/66169/3 "2025-09-27T18:36:57Z")

</div>

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