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