bcgov / BCHeritage

Branch level repository for documentation and product issues.
Apache License 2.0
4 stars 0 forks source link

Mandatory Field Work Arounds #817

Open emjohnst opened 6 months ago

emjohnst commented 6 months ago

MVP Priority: Low

Description A couple mandatory fields are able to be added blank or with an incorrect value while the remaining card data is added.

Steps to reproduce

Example 2: Site Submission Resource Model

  1. Create new heritage site submission
  2. Under "Total Number Submitted" leave to 0
  3. Click Add

Actual result: Saved data

Expected Result: Unable to save error message

Example 1: Heritage Site Resource Model

  1. Create new heritage site resource
  2. Go to Official Recognition information card
  3. Add data to mandatory fields including registry types
  4. Before saving, remove registry type, then save

Actual Results: Saved Data

Expected Results: Unable to save error message

*attach screenshot

bferguso commented 6 months ago

For Example 2 - there is a limit on the number widgets because they can no be null, a mandatory check always is passed. 0 is a valid number so that is as expected. We'll need to figure out a custom widget for numeric values that allow for null