NOTE: This is an enhancement, but a very critical enhancment
Widget
Coordinate Conversion
Version of widget
14 December 2016
Bug or Enhancement
When you specify an invalid coordinate in the Input textbox, any previous calculated results in the Output texboxes are not cleared. The last valid output is still displayed. This is extremely dangerous as the user may not have realized they entered an invalid coordinate or did not realize that the output values didn't change from the last valid coordinate entered; they will then copy the outputs to use in other applications thinking they copied valid values.
Example:
The user enters the following valid MGRS coordinate: 34PFR1459853908
The output textboxes are updated to display the output coordinates...
Then the user enters the following invalid MGRS coordinate, either because the user was given an invalid MGRS coordinate or maybe they did a copy/paste from a report and didn't copy all the coordinates: 34KGE358193443
(it's invalid because it's missing the 10th digit in the easting/northing; perfect example of a copy/paste issue)...
We at least notify the user that there was a problem...
But we should clear the output textboxes instead of leaving the calculated coordinates as it is now...
Repo Steps or Enhancement details
Copied from original issue: Esri/solutions-webappbuilder-widgets#708
From @elinz on December 14, 2016 18:53
NOTE: This is an enhancement, but a very critical enhancment
Widget
Coordinate Conversion
Version of widget
14 December 2016
Bug or Enhancement
When you specify an invalid coordinate in the Input textbox, any previous calculated results in the Output texboxes are not cleared. The last valid output is still displayed. This is extremely dangerous as the user may not have realized they entered an invalid coordinate or did not realize that the output values didn't change from the last valid coordinate entered; they will then copy the outputs to use in other applications thinking they copied valid values.
Example: The user enters the following valid MGRS coordinate: 34PFR1459853908 The output textboxes are updated to display the output coordinates...
Then the user enters the following invalid MGRS coordinate, either because the user was given an invalid MGRS coordinate or maybe they did a copy/paste from a report and didn't copy all the coordinates: 34KGE358193443 (it's invalid because it's missing the 10th digit in the easting/northing; perfect example of a copy/paste issue)... We at least notify the user that there was a problem...
But we should clear the output textboxes instead of leaving the calculated coordinates as it is now...
Repo Steps or Enhancement details
Copied from original issue: Esri/solutions-webappbuilder-widgets#708