You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What?
Adds a way to prevent creating new documents from the admin UI in a join
field.
### Why?
There are two reasons:
1. You want to disable this any time as a feature of your admin user
experience
2. When creating a new document it is not yet possible to create the
relationship, preventing create is necessary for the workflow to make
sense.
### How?
join field has a new admin property called `allowCreate`, can be set to
false. By default the UI will never allow create when the current
document being edited does not yet have an `id`.
Fixes #
#8892
### Before
Even though the document doesn't have an ID yet, the create buttons are
shown which doesn't actually work.

### After
Initial document creation:

Prevented using `allowCreate: false`

|**`name`**\*| To be used as the property name when retrieved from the database. [More](/docs/fields/overview#field-names)|
127
-
|**`collection`**\*| The `slug`s having the relationship field. |
128
-
|**`on`**\*| The name of the relationship or upload field that relates to the collection document. Use dot notation for nested paths, like 'myGroup.relationName'. |
129
-
|**`maxDepth`**| Default is 1, Sets a maximum population depth for this field, regardless of the remaining depth when this field is reached. [Max Depth](/docs/getting-started/concepts#field-level-max-depth)|
130
-
|**`label`**| Text used as a field label in the Admin Panel or an object with keys for each language. |
131
-
|**`hooks`**| Provide Field Hooks to control logic for this field. [More details](../hooks/fields). |
132
-
|**`access`**| Provide Field Access Control to denote what users can see and do with this field's data. [More details](../access-control/fields). |
133
-
|**`defaultLimit`**| The number of documents to return. Set to 0 to return all related documents. |
134
-
|**`defaultSort`**| The field name used to specify the order the joined documents are returned. |
135
-
|**`admin`**| Admin-specific configuration. |
136
-
|**`custom`**| Extension point for adding custom data (e.g. for plugins). |
137
-
|**`typescriptSchema`**| Override field type generation with providing a JSON schema. |
|**`name`**\*| To be used as the property name when retrieved from the database. [More](/docs/fields/overview#field-names)|
127
+
|**`collection`**\*| The `slug`s having the relationship field. |
128
+
|**`on`**\*| The name of the relationship or upload field that relates to the collection document. Use dot notation for nested paths, like 'myGroup.relationName'. |
129
+
|**`maxDepth`**| Default is 1, Sets a maximum population depth for this field, regardless of the remaining depth when this field is reached. [Max Depth](/docs/getting-started/concepts#field-level-max-depth).|
130
+
|**`label`**| Text used as a field label in the Admin Panel or an object with keys for each language. |
131
+
|**`hooks`**| Provide Field Hooks to control logic for this field. [More details](../hooks/fields). |
132
+
|**`access`**| Provide Field Access Control to denote what users can see and do with this field's data. [More details](../access-control/fields). |
133
+
|**`defaultLimit`**| The number of documents to return. Set to 0 to return all related documents. |
134
+
|**`defaultSort`**| The field name used to specify the order the joined documents are returned. |
0 commit comments