# Restrict Linked Form to Only One Instance

**URL:** <https://forum.odk-x.org/t/restrict-linked-form-to-only-one-instance/1092>\
**Category:** Support\
**Created:** [February 2, 2021, 3:28pm UTC](https://forum.odk-x.org/t/restrict-linked-form-to-only-one-instance/1092 "2021-02-02T15:28:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmuchuchuti](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/cmuchuchuti/32/356_2.png) [@cmuchuchuti](https://forum.odk-x.org/u/cmuchuchuti)\
**Post date:** [February 2, 2021, 3:28pm UTC](https://forum.odk-x.org/t/restrict-linked-form-to-only-one-instance/1092/1 "2021-02-02T15:28:26Z")

</div>

ODK-X Forumn;

I am wondering if there is a way to restrict a subform (linked form) to only allow one instance.

I would appreciate any help.

---

<div class="post-metadata">

**Author:** ![elmps2018](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/elmps2018/32/105_2.png) [@elmps2018](https://forum.odk-x.org/u/elmps2018)\
**Post date:** [February 2, 2021, 3:48pm UTC](https://forum.odk-x.org/t/restrict-linked-form-to-only-one-instance/1092/2 "2021-02-02T15:48:59Z")

</div>

Hi @cmuchuchuti! We do exactly that (one and only one father) as discussed in this post with an example form:

> [@Is it possible to alert the user of the duplicate records](https://forum.odk-x.org/t/is-it-possible-to-alert-the-user-of-the-duplicate-records/1054/2):
>
> Hi @hissdev! If you are using ODK-X to create the identifiers (the uuid) you would never end up with two of the same uuid, so duplication would be avoided. But if you are meaning to avoid two records for the same patient, for example, that you would have to program in. For example if there is a unique identifier, you can mandate that it is entered once and only once by counting the number of times it is already in the database using async\_assign (see customizing prompts here: [Using ODK-X XLSX C…](https://docs.odk-x.org/xlsx-converter-using/?highlight=async_assign#customizing-prompts)
