Skip to content

Required field errors in the submission disappear when you deposit #2664

@artlowel

Description

@artlowel

Describe the bug
If you open a new submission and immediately click deposit, you'll get a notification saying "Deposit cannot be completed due to errors in the form. Please fill out all required fields to complete the deposit.". Each required field will be highlighted in red with a message underneath saying it's required

However if you first fill out another field in the describe step (e.g. citation) and then click deposit, you'll still get the notification but the required fields won't get that red highlight and error message. Any fields that were already highlighted will lose that highlight

To Reproduce
Steps to reproduce the behavior:

  1. Start a new submission
  2. Optionally click the title field but don't enter any value. You'll see it get highlighted in red
  3. Fill out the citation field
  4. Click deposit
  5. You'll notice that the required fields aren't highlighted, and if you did step 2, you'll notice its highlight has disappeared

Expected behavior
All required fields should be highlighted in red, so the user knows what to do to successfully complete the submission

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions