Validation Issue #325
Labels
Area: Cases
Issues & PRs related to all things regarding the Cases Module
Area: Frontend
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Status: Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Status:Requires Updates
Issues & PRs which requires input or update from the author
Type: Bug
Something isn't working
Issue
When creating a Case, Missed Collection's Outcome field required validation appears even if there is a value after "Save and Continue".
Expected Behavior
After filling a value, and click "Save and Continue", validation needs to validated related field.
Actual Behavior
After clicking "Save and Continue", validation doesnt validate the related field.
Possible Fix
Below lines are not in order.
data.field.definition.required = required;
data.field.formControl.setValidators(validators);
data.field.formControl.updateValueAndValidity({onlySelf: true, emitEvent: true});
record.formGroup.updateValueAndValidity({onlySelf: true, emitEvent: true});
Steps to Reproduce
Context
Even if you fill a value in Outcome field and click Save and Continue, related field still needs required to fill validation.
Your Environment
The text was updated successfully, but these errors were encountered: