Geolocation widget is not working if we enable Hide field option.

  • CleanwayXtra
    Asked on November 18, 2019 at 4:49 AM

    Im trying to create a form with Geolocation but dont want the field visible when filling out the form.

    I know how to do that, the problem is that when I hide the field, the geolocation doesnt show on the submission or the email, only an empty field

    How to fix please

    Bruce

  • AndrewHag
    Replied on November 18, 2019 at 5:53 AM

    The widget will not function if you hide it. I would suggest you unhide the widget by enabling the Hide Field option and use custom CSS code to hide it.

    After unhiding the widget, go to Form Designer > Styles and add this code under the custom CSS code:

    #id_30{

       display: none;

    }

    Guide: How-to-Inject-Custom-CSS-Codes

  • CleanwayXtra
    Replied on November 18, 2019 at 7:16 AM

    Thanks Andrew but I have entered the code as you suggested but it still shows

     

  • CleanwayXtra
    Replied on November 18, 2019 at 7:28 AM

    Sorry was entering code in the wrong area. Managed to hide the field but now it wont show on the submission. Geolocation field is now blank

  • Richie JotForm Support
    Replied on November 18, 2019 at 10:09 AM

    Unfortunately, the data will not show when you hide the Geo location widget.

    I would suggest using the Get visitor location widget if you want to get the location of your form user.

    Please give it a try and let us know if you have further questions.

  • CleanwayXtra
    Replied on November 18, 2019 at 7:25 PM

    Hi Richie

    Have tried to add the Visitor LOcation widget to my form, but each time I try, it navigates to a blank page  

    https://www.jotform.com/build/93171439779875

    I then refresh the page but the widget is still not on the form. This happens each time I try

    This happens on all my forms


  • Richie JotForm Support
    Replied on November 18, 2019 at 8:32 PM

    I was able to replicate the issue with the Get visitor widget, I have created a new thread regarding this issue at this link:https://www.jotform.com/answers/2045311

    May we know what info would you like to get from your form user? Unfortunately, the Geolocation widget must be shown to get the data.

    You may try the Hidden Box widget.

    Guide:https://www.jotform.com/help/234-How-to-Catch-User-s-Browser-Info