# Is there a way to create a note that creates cards based on the amount of fields that have data?

**URL:** https://forums.ankiweb.net/t/is-there-a-way-to-create-a-note-that-creates-cards-based-on-the-amount-of-fields-that-have-data/27313
**Category:** Card Design
**Created:** [February 10, 2023, 11:51am UTC](https://forums.ankiweb.net/t/is-there-a-way-to-create-a-note-that-creates-cards-based-on-the-amount-of-fields-that-have-data/27313 "2023-02-10T11:51:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)
#### Post date: [February 10, 2023, 11:51am UTC](https://forums.ankiweb.net/t/is-there-a-way-to-create-a-note-that-creates-cards-based-on-the-amount-of-fields-that-have-data/27313/1 "2023-02-10T11:51:16Z")

</div>

I have a note type with 10 fields that creates 10 cards. Sometimes I fill only part of them. The problem with this is that I get cards even on the empty fields. Is there a way to prevent this?

---

<div class="post-metadata">

### Author: ![garrettm30](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/garrettm30/32/1268_2.png) [@garrettm30](https://forums.ankiweb.net/u/garrettm30)
#### Post date: [February 10, 2023, 12:02pm UTC](https://forums.ankiweb.net/t/is-there-a-way-to-create-a-note-that-creates-cards-based-on-the-amount-of-fields-that-have-data/27313/2 "2023-02-10T12:02:54Z")

</div>

Sure, you can use conditional replacements. See the manual entry at the link below. About half way down the conditional replacement section, the manual explains how to use that for conditionally generating cards.

[https://docs.ankiweb.net/templates/generation.html#conditional-replacement](https://docs.ankiweb.net/templates/generation.html#conditional-replacement)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)
#### Post date: [March 12, 2023, 12:03pm UTC](https://forums.ankiweb.net/t/is-there-a-way-to-create-a-note-that-creates-cards-based-on-the-amount-of-fields-that-have-data/27313/3 "2023-03-12T12:03:04Z")

</div>

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