# Can't select specific custom type in Content Relationship field

**URL:** <https://community.prismic.io/t/cant-select-specific-custom-type-in-content-relationship-field/3771>\
**Category:** Prismic for Content Creators\
**Created:** [January 28, 2021, 1:25pm UTC](https://community.prismic.io/t/cant-select-specific-custom-type-in-content-relationship-field/3771 "2021-01-28T13:25:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristian](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@kristian](https://community.prismic.io/u/kristian)\
**Post date:** [January 28, 2021, 1:25pm UTC](https://community.prismic.io/t/cant-select-specific-custom-type-in-content-relationship-field/3771/1 "2021-01-28T13:25:37Z")

</div>

Hey,

I'm getting an error when I try to add a content relationship field, the "constraint to custom type" is grayed out.

There is an error in the inspector log "this.state is not iterable"

The repo is [https://picpus.prismic.io/](https://picpus.prismic.io/)

I hope you can help.

Thanks,  
Kristian

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [January 28, 2021, 1:35pm UTC](https://community.prismic.io/t/cant-select-specific-custom-type-in-content-relationship-field/3771/2 "2021-01-28T13:35:12Z")

</div>

Hello Kristian,

Thanks for reaching out to us.

This is a known issue, and our dev team is working hard on this.

Fo now, there is a workaround. You can put constraints in the JSON, and it will work. Here are steps to do it:

1. Go to the custom-type builder.
2. Select the 'JSON Editor' tab.
3. Find the content relationship field and add constraint here with the `"customtypes" : [""],` option.

```auto
    "case_link" : {
      "type" : "Link",
      "config" : {
        "select" : "document",
        "customtypes" : ["case"],
        "label" : "Case Link"
      }
    },

```

Sorry for the inconvenience. I will update you here once there is a release for this bug.

Thanks.  
Priyanka

---

<div class="post-metadata">

**Author:** ![kristian](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@kristian](https://community.prismic.io/u/kristian)\
**Post date:** [January 28, 2021, 1:42pm UTC](https://community.prismic.io/t/cant-select-specific-custom-type-in-content-relationship-field/3771/4 "2021-01-28T13:42:51Z")

</div>

Thanks I will try that.

Have a nice day!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [January 29, 2021, 1:43pm UTC](https://community.prismic.io/t/cant-select-specific-custom-type-in-content-relationship-field/3771/5 "2021-01-29T13:43:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 12:06pm UTC](https://community.prismic.io/t/cant-select-specific-custom-type-in-content-relationship-field/3771/6 "2021-12-09T12:06:27Z")

</div>


