jimmy vu
Posts: 0
Joined: Thu Apr 04, 2013 10:26 am

How do i get the value of a geolocation to insert into textbox

ok my question is where do i put the "return" javascript

return localStorage.getItem("latitude") + ',' + localStorage.getItem("longitude");

and do i use the variable values "lat" and "lng"; then where and how do i assign the address value to the textbox? Please ??

what is the code that i would use to assign that value to the textbox, if you can help me with that i think i will be done?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How do i get the value of a geolocation to insert into textbox

Working on it, I'll update asap.

jimmy vu
Posts: 0
Joined: Thu Apr 04, 2013 10:26 am

How do i get the value of a geolocation to insert into textbox

any idea how long i'm falling asleep. if i go to bed and this isn't working i'm done. sorry just thought this was easy for you all since you do it all the time, i'm surprised i am the only one who has ever asked this request.

jimmy vu
Posts: 0
Joined: Thu Apr 04, 2013 10:26 am

How do i get the value of a geolocation to insert into textbox

look simple just missing one thing like how to assing the values to the textbox. is this really this hard?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How do i get the value of a geolocation to insert into textbox

On Data tab open Events, and add the following code to the existing Run JavaScript action:
codeTiggzi('inputSource').val(data.coords.latitude + ', ' + data.coords.longitude);/code
In "inputSource" there will be latitude and longtitude separated by commas.

jimmy vu
Posts: 0
Joined: Thu Apr 04, 2013 10:26 am

How do i get the value of a geolocation to insert into textbox

ok that actually worked, but it gives coodinates and not the human readable address? How do i convert that?

jimmy vu
Posts: 0
Joined: Thu Apr 04, 2013 10:26 am

How do i get the value of a geolocation to insert into textbox

ok one last request and i will be nice from now on and i'll learn to anticipate ... how do i convert this to human readable form.

ive tested on my phone and it works fantastic. Thank you Katya.

jimmy vu
Posts: 0
Joined: Thu Apr 04, 2013 10:26 am

How do i get the value of a geolocation to insert into textbox

Ok after I enabled the service in the form, i was able to understand your steps. I'm sorry to be mean, just a tight schedule. Anyway, things work better and I apologize for being short in tempter.

Return to “Issues”