Hello, Please I would like to collect a user's GPS...
# suitescript
i
Hello, Please I would like to collect a user's GPS coordinates on the mobile app and store them in two fields labeled longitude and latitude on a custom form. Above all, I would like to collect this information when the user clicks on a button added using the workflow set up. Also I would also like to fill a link type field with the link to the position on the user's MAP. Can you share with me any tutorials or directions to achieve this please?
b
the workflow button screws you here
workflow buttons requires the usage of workflow action scripts, which run serverside
👍 1
where there is no device with usable gps coordinates
i
And what solution do you suggest me in this case please?
b
client script is able to use the Geolocation API
i
Please I would really like to attach this to a workflow is this possible with the action script workflow?
b
you should have access to the newRecord in the workflow action script
so you can use the client script to set and maybe save the coordinates on the record
i
Ok let me try that
Thanks