Conditional field with "type:"

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}}

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', '']

Try wrapping the whole Front template this way:

{{#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)

2 Likes

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