SORMAS-Project
SORMAS-Project copied to clipboard
Add field validation/highlight for 'Region' and 'District' in 'Create new aggregate report' forms
Problem Description
Proposed Change
For the fields 'Region' and 'District' in aggregate report forms, add a filed validation that would highlight them when the user tries to save the form without any values set for either region or district.
When the user clicks 'Save' without having inputted any values in the fields 'Region' and 'District' display a pop-up message informing them that those values are mandatory (similar to the ones we already have in other creation forms):
Acceptance Criteria
Implementation Details
Additional Information
https://github.com/hzi-braunschweig/SORMAS-Project/issues/9847#issuecomment-1219780736
@MateStrysewske @adinaflorea9
There is a warning message when the jurisdiction is not specified. Can the issue be closed?
@bernardsilenou I think the issue here is that it's not consistent with other forms we have, i.e. the fields aren't properly highlighted in red and the message is only a warning, not an error message.