Is it possible to make card empty by filter hook?

Hi, I made a custom filter hook, e.g. {{myFilter:Word}}, to conditionally change the value of the field to an empty string trying to make the card empty so as to prevent certain card being generated.

But no luck.


The filter did return empty string and there’s not a character in the card, but Anki didn’t consider it empty.

Alternatively I made the filter return something for even an empty field, and Anki considered it empty while the front got something to display.

Looks like the empty card determination happens regardless of filter hook results?

Filters only affect display, not behaviour.

1 Like