function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nextdoornextdoor 

Updating a custom field

Hi,

I have added a google map frame in a VF page in order to get some coordinates. (User get his coordinates with a right clik on the map)

I also have a custom field 'Coordinates'.

How can I update 'Coordinates' with the new values retrieved from the map ?

 

google.maps.event.addListener(map, "rightclick", function(event) {
var lat = event.latLng.lat();

});

 How to fill 'MyObject.Coordinates__c' by 'lat' ?

SamuelDeRyckeSamuelDeRycke

I think Javascript remoting could help you out.