Specify relation column as required
sc tester
Now, with conditional fields, we could almost build a button component which supports different "links". A text field with regex pattern to allow plain URLs and different relation fields to dynamically link to content inside of Strapi.
(And a field to select which link field is shown)
But as long as we can't make the relation fields required, it will happen that our content editors accidentally publish pages with "empty" (broken) links.
Nguyen Huu Kim
If you are using Strapi 5, you can try this one:
Bhavya Bhut
Any update?
B
Benjamin Schneider
how is it possible that this is still open after 6 years?!
KP
hi, any updates for making relationship field required?
V
Vladyslav Shestakov
Really need this
Derrick Mehaffy
Merged in a post:
Prevent users from creating entries when the relationships are missing
r
rinzler
In Strapi 4.16.2, we can make a normal field required from the admin interface. This prevents us from creating entries, when those required fields are missing, which is very useful.
Now, this feature does not exist for relationships, but we often need to do this too.
Now, we can manually add the "required: true" to the API's relationship, but this actually has no effect, i.e. it only shows the red asterisk close to relationship field (in the content manager), but we can still create the entry without specifying a value for that relationship.
This is actually more a bug than a feature, but may also be feature, in case you never planned to make relationships required.
This is so important. I know many people need this feature. So, please, implement this asap. Thanks.
A
Ashxdev
hi, any updates here?
ІП-22мп Кемарський Микита
Any updates on it?
Marc Roig Campos
Jen Tak As you clearly explained, Strapi changed the object to work with relations.
Making required relations was working before but was not something Strapi supported.
We plan to work on this in the near future and is something we are discussing how to implement.
r
rinzler
Marc Roig Campos: After 1 year, such a fundamental feature for a CMS is not implemented. What else can be more important than this feature?
Load More
→