Skip to content

DEV - Warn user and block submission when application date is after due date #407

Closed

Description

@janetqliu

Overview

On the Add Grant and Edit Grant forms, validate that the application date is not after the due date. If it is, show an inline error and disable the submit button until the conflict is resolved.

Tasks

  • Write a validation function that compares application date to due date in both Add and Edit Grant cards
  • Render an error message below the date fields when validation fails (copy other error messages) when you add conflicting dates in
  • Disable the submit button when the error state is active
  • Clear the error state when the conflict is resolved

Acceptance Criteria

  • If application date > due date, display an inline error near the date fields.
  • Submit/save button is disabled while the error condition is active.
  • Validation runs on field blur and on submit attempt.
  • Error clears immediately when the conflict is resolved.
  • Applies to both Add Grant and Edit Grant.
  • Test both Add and Edit flows manually to confirm behavior

Activity

  1. self-assigned this
    on Apr 12, 2026
  2. linked a pull request that will close this issuedate validation #415on Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions