Skip to content

Add validation to restrict answers to date questions to the past, present, or future #146

@cmenon12

Description

@cmenon12

What feature do you want to see added?

Add additional validation to restrict answers to date questions to the past, present, or future.

Why do you want this feature? Does it solve a problem?

This additional validation has been requested through user feedback.

How should the feature be implemented?

Add three boolean date properties for past, today, and future. If true (or undefined/null) these are allowed, if false then they are not allowed.

Consider grouping them in a single date property, and grouping the date of birth properties separately.

Update the prompt, schema descriptions, and documentation accordingly.

Additional context (if applicable)

A future task could be to perform a database migration, and ensure these are always present for every date question, allowing them to not take an undefined or null value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions