When the "Address" field is geocode, hide the "Geolocation" field.

You must activate the "Geolocation" field to geowr the "Address" field. In my case the field "Geolocation" is unhelpful. You need a check box to hide the field and the coordinates.

If I disable the field in "Manage Form Display", the "Address" field is not geocoded.

Currently I use in my style sheet:

#edit-field-localisation-wrapper {
    display: none;
}

Comments

zenimagine created an issue. See original summary.

zenimagine’s picture

Issue summary: View changes
christianadamski’s picture

Status: Active » Closed (won't fix)

I decided against this. I can see why you would want this, but it potentially gets very confusing, plus its easy to add this yourself. So I won't fix this.

zenimagine’s picture

@ChristianAdamski With the module "Geocoder" when I deactivate the map of the form, the address field is geocoded.

With your module "Geolocation Field" it does not work, you have to activate the field.

Why show the user the map and coordinates if the user only uses the address field. This has no interest for him and weighed down the form with a useless card.

It should be possible to hide or display the map in the form with the parameters of the "Geolocation Field" field.

When I register on a site, I simply enter my address. I do not select the address in addition to a map. The card is returned once the form is saved.

The developer will choose to display in the form the map OR the address field.