Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow defaultValue on relationship and multiRelationship fields #1235

Open
stefanprobst opened this issue Jul 22, 2024 · 0 comments
Open

allow defaultValue on relationship and multiRelationship fields #1235

stefanprobst opened this issue Jul 22, 2024 · 0 comments

Comments

@stefanprobst
Copy link
Contributor

it would be great to be able to add a defaultValue to relationship and multiRelationship fields, i.e.:

categories: fields.multiRelationship({
  label: "Categories",
  collection: "categories",
  validation: { length: { min: 1 } },
  defaultValue: ["something"],
}),
source: fields.relationship({
  label: "Source",
  collection: "sources",
  validation: { isRequired: true },
  defaultValue: "something",
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant