Cloze Filter Error

This error:

The cloze filter (as in {{cloze:Some Field}}) may only be used on the cloze notetype, and on those created by cloning it.

If you get this error, you can remove the cloze filter from the template.

Including {{cloze:Field}} doesn’t seem to cause any errors. It just shows a blank front/back. Can Anki identify when the cloze filter is used on a non-cloze note type and show an error? If not, this topic can be removed as the issue is mentioned elsewhere.

We should drop it from the manual, as this check was removed: drop the cloze-in-basic check for now · ankitects/anki@9c354f5 · GitHub

1 Like

Do you plan to add it back in?

Not any time soon, no.

Should we remove this error ExtraneousCloze from the code?

--- STDERR:              linkchecker::links check_links ---
thread 'check_links' panicked at rslib/linkchecker/tests/links.rs:97:9:
invalid links found:
  - '#cloze-filter-outside-cloze-notetype' not found on 'docs.ankiweb.net/templates/errors.html'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: test run failed
Failed with code Some(100): cargo nextest run --color=always --failure-output=final --status-level=none --locked

Fixed, thanks!

1 Like