SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

Add field validation/highlight for 'Region' and 'District' in 'Create new aggregate report' forms

Open adinaflorea9 opened this issue 2 years ago • 2 comments

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):

image

image

Acceptance Criteria

Implementation Details

Additional Information

https://github.com/hzi-braunschweig/SORMAS-Project/issues/9847#issuecomment-1219780736

adinaflorea9 avatar Aug 19 '22 08:08 adinaflorea9

@MateStrysewske @adinaflorea9 There is a warning message when the jurisdiction is not specified. Can the issue be closed? image

bernardsilenou avatar Oct 08 '23 23:10 bernardsilenou

@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.

MateStrysewske avatar Oct 09 '23 07:10 MateStrysewske