# \[empty custom forms\] Do you want to know if there are dataSets or programStages that contain empty custom forms?

**URL:** <https://community.dhis2.org/t/empty-custom-forms-do-you-want-to-know-if-there-are-datasets-or-programstages-that-contain-empty-custom-forms/49690>\
**Category:** Resources - Ressources\
**Created:** [19 September 2022 12:30 UTC](https://community.dhis2.org/t/empty-custom-forms-do-you-want-to-know-if-there-are-datasets-or-programstages-that-contain-empty-custom-forms/49690 "2022-09-19T12:30:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctejo](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/ctejo/32/42385_2.png) [@ctejo](https://community.dhis2.org/u/ctejo)\
**Post date:** [19 September 2022 12:30 UTC](https://community.dhis2.org/t/empty-custom-forms-do-you-want-to-know-if-there-are-datasets-or-programstages-that-contain-empty-custom-forms/49690/1 "2022-09-19T12:30:13Z")

</div>

Maybe you can reuse these example API calls 🙂

`https://play.dhis2.org/2.36.12/api/dataSets.json?fields=id,name,dataEntryForm[id,htmlCode]&filter=dataEntryForm:!null&filter=dataEntryForm.htmlCode:null`

`https://play.dhis2.org/2.36.12/api/programStages.json?fields=id,program[name,id],name,dataEntryForm[id,htmlCode]&filter=dataEntryForm:!null&filter=dataEntryForm.htmlCode:null`

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [20 September 2022 14:10 UTC](https://community.dhis2.org/t/empty-custom-forms-do-you-want-to-know-if-there-are-datasets-or-programstages-that-contain-empty-custom-forms/49690/2 "2022-09-20T14:10:36Z")

</div>

Hi @ctejo! 🙂  
Thank you for sharing!

I’ve you would like, please feel free to add it to the API wiki [API wiki post: developers, collaborate here with API Q&As & tips you find helpful for other developers](https://community.dhis2.org/t/api-wiki-post-developers-collaborate-here-with-api-q-as-tips-you-find-helpful-for-other-developers/46011)

---

<div class="post-metadata">

**Author:** ![ctejo](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/ctejo/32/42385_2.png) [@ctejo](https://community.dhis2.org/u/ctejo)\
**Post date:** [20 September 2022 15:07 UTC](https://community.dhis2.org/t/empty-custom-forms-do-you-want-to-know-if-there-are-datasets-or-programstages-that-contain-empty-custom-forms/49690/3 "2022-09-20T15:07:40Z")

</div>

Hi @Gassim ! Thanks for the pointer. I have already included this example to the API wiki post.

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [20 September 2022 15:15 UTC](https://community.dhis2.org/t/empty-custom-forms-do-you-want-to-know-if-there-are-datasets-or-programstages-that-contain-empty-custom-forms/49690/4 "2022-09-20T15:15:51Z")

</div>

You’re welcome! Saw it, thanks for the helpful contributions! 😊👍

@ctejo if you want, a quoting this post there as I did below works too! 👍👍

> [@ctejo](#):
>
> Maybe you can reuse these example API calls 🙂
> 
> `https://play.dhis2.org/2.36.12/api/dataSets.json?fields=id,name,dataEntryForm[id,htmlCode]&filter=dataEntryForm:!null&filter=dataEntryForm.htmlCode:null`
> 
> `https://play.dhis2.org/2.36.12/api/programStages.json?fields=id,program[name,id],name,dataEntryForm[id,htmlCode]&filter=dataEntryForm:!null&filter=dataEntryForm.htmlCode:null`
