You are viewing limited content. For full access, please sign in.

Question

Question

Automate Geolocation capture

asked on January 27, 2017

I'm looking to use the GeoLocation field as part of Forms 10, but I want the form to capture this information automatically.  On Submit, on button click, etc.  I see that the user can click to Use Current Location, but I do not want to force them to do that, plus I'd like to have it as a hidden field.  Any help is much appreciated.  

Thanks,

Nate

0 0

Answer

SELECTED ANSWER
replied on January 27, 2017

Hello Nate, 

 

In the Geolocation field options, you can set it to a Default Value of current_location as shown in the image below:

 

To make the field hidden to the submitter, you can use Javascript to make the Geolocation field hidden on the submitter step using this javascript 

$(document).ready(
  function() {
    if($('input[name="stepid"]').val()==1) {
    	$("#q4").hide();
    }
  });

where the 1 corresponds to the ID of the process event which can be found in the Process Diagram by double clicker a step as shown below:

And  the "#q4" is the id of my geolocation field. 

Hope this helps!

 

4 0

Replies

replied on January 27, 2017

Perfect, Thanks Winston!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.