FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests