Skip to content

Renaming a field in a cloze note type adds {{cloze:Text}} to the template and browser appearance #4581

@abdnh

Description

@abdnh

Steps to reproduce

Change the front template of the default cloze note type to this:{{#Text}}
{{cloze:Text}}
{{/Text}}

{{^Text}}
{{cloze:Text}}
{{/Text}}

Rename the back extra field to “Back Extras”.

Actual behavior
Observe that {{cloze:Text}} has been appended to the front template and the browser appearance (both question and answer).
Expected behavior
No changes to the template/browser appearance.
Remarks
The browser appearance part is independent of the front template steps. Simply renaming a field, appends {{cloze:Text}} to it.
Also, the front template part seems to require having the clozed field replacement to be inside a conditional field replacement. The example I used demonstrates that Anki isn’t doing any intelligent checking, since the front is equivalent to {{cloze:Text}}.
Debug info
Anki 25.09.2 (3890e12) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: Windows-10-10.0.19045-SP0

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced Copy Fields ['1898445115', 2024-01-08T20:01, 'v0.4.01', '']
AnkiConnect ['2055492159', 2025-11-09T22:40, 'None', mod]
AnkiWebView Inspector ['31746032', 2023-06-27T22:26, 'None', '']
Disconnected Review-Log Cleaner ['1067771610', 2025-06-10T16:28, 'None', '']
Local Audio Server for Yomichan ['1045800357', 2023-06-19T06:57, 'None', '']
The KING of Button Add-ons ['374005964', 2025-01-28T01:26, 'None', mod]

===IDs of active AnkiWeb add-ons===
1045800357 1067771610 1898445115 2055492159 31746032 374005964

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
No Distractions Full Screen Fixed by Shige ['1370336700', 2024-08-26T08:08, 'None', mod]

Originally reported on https://forums.ankiweb.net/t/bug-renaming-a-field-in-a-cloze-note-type-adds-cloze-text-to-the-template-and-browser-appearance/69052

Metadata

Metadata

Assignees

No one assigned

    Labels

    rustInvolves Anki's Rust code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions