Repository navigation
Allow disabling "select existing" on relationship/upload fields (create/upload-only) #17028
pauksztello
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
It would be useful to be able to disable the "choose existing" picker on
relationshipanduploadfields, so editors can only create/upload a new document rather than pick an existing one.Today these fields always offer both options — select an existing related document or create/upload a new one. There's an
admin.allowCreateoption to remove the create half, but no equivalent to remove the select-existing half.Use cases
Media that must always be unique. A common one: an
uploadfield pointing at aMediacollection where each upload should be its own file. Right now the editor can browse and reuse any existing item in the media library, but in some setups reusing media is undesirable — every entry should force a fresh upload (e.g. per-document assets that shouldn't be shared, or to avoid editors accidentally attaching the wrong existing file). There's currently no way to hide the existing-media browser and only allow uploading.Prior art
admin.allowCreate: falsein feat: prevent create new for joins #8929 (Ability to disable Create/Add new on Join Field #8892), establishing create/selectAll reactions