Problem/Motivation
When the geofield field is required and the "Hide Lat/Lon Coordinates Input" option is checked we lose the FE validation and receive the "This value should not be null." error which is non-informative enough.
Steps to reproduce
- Create a required - "Geofield" type field;
- Set the "Geofield Map" widget;
- Enable the "Hide Lat/Lon Coordinates Input" option.
- Go to the entity and try to save it.
Proposed resolution
Add the visual indicator to the fieldset to show that field is required when the lat and lon fields are hidden.
Comments
Comment #2
alt.dev commentedComment #3
itamair commentedComment #5
itamair commentedThanks @alt.dev for highlighting all this.
This last commit: https://git.drupalcode.org/project/geofield_map/-/commit/555e9f88c6eb2fc...
solves this introducing a specific / dedicated error message with the following pattern:
No location has been set yet for required field "[field_geofiel_map_widget_label]".