Update Specific Cards

Hello!

There are about 400 cards in my anking deck without any content in the “text” field.

Consider this example
image
Which should have content:
image

I have the text field protected because I make sometimes changes to the clozes. How can I get the fields of these few cards to populate correctly? I tried deleting the cards, hoping that ankihub would notice that the cards were gone and re-create the entire card for me, but that didn’t seem to work. I also tried unprotecting “text” in ankihub, then selecting all my cards in anki itself, protecting all fields but “text” (see below), then selecting the few cards that I do want to change the text field on and unprotecting the text field for them specifically, and then syncing with ankihub. I figured that this would protect the text field in all my other cards but not protect it in the cards that I do want changed, but that didn’t work either.
image

Any advice for a faster way than clicking “View on Ankihub” for all these 400 cards and copy/pasting the text into the field?

Thank you so much!

Try the following:

  1. Protect the Text field only in notes where you want to make changes to the fie.d
  2. Reset local changes using AnkiHub > Reset all local changes to a deck in the browser.
1 Like

I want to make sure I’m understanding you correctly. At the moment, I have text protected for the entire anking deck collection:


When I updated from v11 to v12, I noticed that about 400 cards don’t have text in the text field for some reason.

Are your instructions to

  1. In ankihub: unprotect the text field
  2. In anki: Select the cards that don’t have text
  3. Still in anki: reset all local changes in these selected cards
  4. In ankihub: reprotect the text field
    Will doing this both (a) repopulate the text field in the 400 cards and also (b) maintain the changes I’ve made to the text (and other) fields in all my other cards?

Relatedly - after I delete an anking card from my collection, will it return if I sync with ankihub again (assuming it still is in the ankihub collection)?

I followed this plan, and it did the opposite of what I intended. I now assume that when you said “Protect the Text field only in notes where you want to make changes to the fie.d,” you were referring to the notes were I want to save the changes I’ve made to their text, not to the ones I am currently seeking to change.

Can I only accomplish what I want by:

  1. In ankihub.net: Unprotecting the text field
  2. In anki desktop: Selecting all the cards except for the ones with content missing from the text field
  3. Still in anki desktop: use the ankihub protect feature, and protect all fields for these cards
  4. Still in anki desktop: AnkiHub > Reset all local changes to a deck

Can I not just unprotect the text field in ankihub.net, then select the 400 relevant cards in anki desktop, and click “reset local changes,” as seen below, specifically for these cards?

I am still interested in my previous question: after I delete an anking card from my collection, will it return if I sync with ankihub again (assuming it still is in the ankihub collection)?

Yes, that’s what I meant.

This should work too, but I don’t see why you would go for this solution rather than the one I suggested, as it’s a more direct one, and will ensure you get updates to other fields and notes where you don’t want to change the Text field.

“Reset local changes” affects all notes, not just selected ones.

It won’t return until you reset local changes.

Thank you so much for your reply!

I preferred to do it my way because I want to keep the text field protected for the entire deck - with the number of changes I’ve made, going through and selecting which specific cards I want the text field protected on would likely take days. All I wanted to do was instantly update the text on 400 cards without needing to first find all the cards I’ve already changed, and my method accomplished that.

1 Like

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