18
Dynamic max/min values
Source: directus/directus#20699 · opened by @u12206050
Summary Allow setting min/max possible values on number and date fields based on the value of other local fields. Basic Example Given a collection with start_date and end_date I would set the min property on the end_date to be that of the start_date and the max property of the start_date to be the end_date In regards to dates dynamic values such as $NOW can also easily be supported. Motivation Even if this validation is just done in the frontend, it can help avoid so many data issues and speed up users selecting a date. Once I selected the start_date, the end_date will already be scrolled to and only allow me to select dates larger than that. Detailed Design Here is a closed PR that already implemented this: Requirements List Must Have: • Allow setting min field on the interface option • Allow setting max field on the interface option Should Have: • Warning/error if values are outside of range Could Have: • Support for $NOW with adjustme…
No pledges yet. Be the first to back this.
Comments
Similar requests
Insight - Meter - Max Value Query
3 votes · 0 comments
Default Field Values per Language
2 votes · 0 comments
Add support for default values in the Repeater interface
1 vote · 0 comments
New type of panel in dashboards (Insights)
6 votes · 0 comments
Dropdown selector for boolean field with labels
1 vote · 0 comments
No comments yet.