Validation for Related Data #22317
FutureBuddha
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
The idea is to be able, in validations in the data modeling of fields, to make comparisons with the related data. For now, it is only possible to use the ID of the relation
Basic Example
I have two fields: an image field (logo) for single images and a files field (gallery) for multiple pictures.
Now, I want to make a validation so that the size of the picture has to be bigger than 500kb.
Motivation
It would provide much better flexibility for data modeling.
Detailed Design
Here, there should be an option to select which field from the relation is to be used, maybe similar to the columns in the bookmarks
Requirements List
Must Have:
A way to make comparisons with relational data.
Should Have:
Could Have:
A dropdown select with all possible fields for validation.
Won't Have:
Drawbacks
I don't see a good reason not to do it.
Alternatives
To use a flow like here, wonderfully done. https://www.loom.com/share/55e69a318c9140b78ef791ed6ad64f95?sid=e5ec4c0a-0546-4e71-b9ff-a254c0b937bb``
Adoption Strategy
not sure
Unresolved Questions
No response
Beta Was this translation helpful? Give feedback.
All reactions