# Unable to create entity as "Related data" column has disappeared from creation form

**URL:** <https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406>\
**Category:** Help me!\
**Tags:** related-data\
**Created:** [October 19, 2022, 1:05pm UTC](https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406 "2022-10-19T13:05:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Picquerey](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/scott_picquerey/32/5243_2.png) [@Scott\_Picquerey](https://community.forestadmin.com/u/Scott_Picquerey)\
**Post date:** [October 19, 2022, 1:05pm UTC](https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406/1 "2022-10-19T13:05:45Z")

</div>

Hello!

## Feature(s) impacted

I have a collection called “trial” that has a relation with another collection “disease area”. When creating a new trial, I need to add at least one disease area (trial hasMany disease areas). When I developed the feature a month ago, I was able to have:

- a view for “details” where I could fill all properties of my entity
- a view for “related data” where I could select the collection “disease area” and add/select entities

This is the most important feature of our product as it stops business if we can’t create entities, please help me ASAP !

## Observed behavior

The “Related data” view is not accessible anymore on the “trial” entity creation, making it impossible for me to create a new entity as having “disease areas” is mandatory. The button “Related data” just disappeared from the interface.  
I checked the layout and couldn’t find anything. I checked my code and I haven’t done any modification on my configuration.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/6/6384e60c66e98d9728890d33a87a36906c819934.png)

## Expected behavior

The button “Related data” is visible, allowing me to add/select “disease area” entities when creating a “trial”

how it was before:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/00fdedebcdf75776f457e50f49b4df1ff192bf64.jpeg)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/e/e3f9ae31b6597dafe1673a1e9bb2bfc16fbcc56c.jpeg)

## Failure Logs

N/A

## Context

- Project name: Inato Marketplace
- Team name: Inato
- Environment name: all → Production, Staging, Development
- Agent type & version: forest-express-sequelize:8.5.13
- Recent changes made on your end if any: none

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [October 19, 2022, 4:56pm UTC](https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406/2 "2022-10-19T16:56:21Z")

</div>

Hi @Scott_Picquerey,

Sorry to read your post.  
Do you have an idea of the last time it worked as expected?

In the meantime, I am currently looking at recent contribution that could have introduced such regression.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [October 19, 2022, 5:19pm UTC](https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406/3 "2022-10-19T17:19:14Z")

</div>

Hi @Scott_Picquerey,

We identified the issue, that is a change we introduced 8 days ago.  
A new release is currently in progress to rollback the feature.

We will investigate internally how we ended up in this situation and what can be improved to prevent such unexpected experience in the future.

Thanks for your patience.

---

<div class="post-metadata">

**Author:** ![Scott\_Picquerey](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/scott_picquerey/32/5243_2.png) [@Scott\_Picquerey](https://community.forestadmin.com/u/Scott_Picquerey)\
**Post date:** [October 20, 2022, 7:45am UTC](https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406/4 "2022-10-20T07:45:53Z")

</div>

Hi @arnaud !

Awesome. Thank you for your answer, I am glad you have identified the issue 🙂  
Please let me know when you release the fix.

Best,

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [October 20, 2022, 9:05am UTC](https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406/5 "2022-10-20T09:05:13Z")

</div>

It’s been released last night, so the feature is back!

---

<div class="post-metadata">

**Author:** ![Scott\_Picquerey](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/scott_picquerey/32/5243_2.png) [@Scott\_Picquerey](https://community.forestadmin.com/u/Scott_Picquerey)\
**Post date:** [October 20, 2022, 12:29pm UTC](https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406/6 "2022-10-20T12:29:14Z")

</div>

Thank you so much for this quick fix !!! 🙏

---

<div class="post-metadata">

**Author:** ![anon15707845](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anon15707845](https://community.forestadmin.com/u/anon15707845)\
**Post date:** [October 20, 2022, 2:28pm UTC](https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406/7 "2022-10-20T14:28:50Z")

</div>

Hi @Scott_Picquerey ,

From what I understand, the related data (`disease areas` in your case) are not automatically linked to the record (`trial` in your case) unless you specify in the form of each `disease area` the **id** of the trial you are about to create. This felt like a poorly functional feature on our side and since you are automatically redirected to the `trial`’s details page after creation, where you are only 1 click away from adding `disease areas` which are automatically linked to your trial, it appeared like the easiest way to remedy this was simply to remove the “Related data” tab. I’m sorry it got in the way of your creation flow!

Would you mind telling me, in your last screenshot:

- do you usually use “Add an existing disease area” or “Create a new disease area” or both
- is there any “trial id” field that you must fill in order to link the disease area to the trial? If so, what **id** do you enter?

This would help me better understand how this feature is used.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Scott\_Picquerey](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/scott_picquerey/32/5243_2.png) [@Scott\_Picquerey](https://community.forestadmin.com/u/Scott_Picquerey)\
**Post date:** [October 21, 2022, 12:45pm UTC](https://community.forestadmin.com/t/unable-to-create-entity-as-related-data-column-has-disappeared-from-creation-form/5406/8 "2022-10-21T12:45:16Z")

</div>

Hi!

When creating a “trial”, we cannot have the an empty array for the “disease areas”, that is why we need to have the relation on creation. Else, we would just create the trial and then add the disease areas separately.

Here we are using “related data” but what would be optimistic is to have a field “disease areas” within the “details” form that allows multi-select on other collections. This way, we would just do the same as we do for other fields.  
Example: a trial has one “sponsor” which can be selected directly in the form (cf. picture below)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/b/bfd56e5de8902901ab08bbd9c42fbaad08257575.png)

Does such a feature exist ? Or is it in the pipe on your side ?  
If so, we won’t need the “related data” anymore.

To answer your questions:

- We usually use the “Add an existing disease area”. We don’t care much about the create as we can do it before creating the trial
- The relation between a trial and a disease area is that the trial entity has a field “disease\_area\_ids” which is a non empty array of disease\_area id

Hope this helps!
