Address Map Locator Widget: CSS to allow user to fill with latitude/longitude.

  • Profile Image
    Asked on August 18, 2016 at 07:10 PM

    I'm trying to create a form that will allow the user to populate coordinates either by adding an address or the lat/long themselves. I've seen that I can inject custom CSS into this widget to show or hide the lat/long fields, but can I also make them editable with CSS?

  • Profile Image
    Answered on August 18, 2016 at 10:11 PM

    I see that you want the user to be able to edit their latitude and longitude. Unfortunately, that is not possible to achieve using CSS. Custom CSS is only used for styling the widget or showing/hiding the elements from being displayed. We cannot change an element's attributes using CSS.

    The latitude and longitude are determined from the address that the user entered, or based on the point that the user pinned on the widget's map. The user will have to either enter their specific address or move the pin to the exact position that they want to point to on the map. 

    If you would like to get the exact lat and long of the user at the time when they are filling up the form, perhaps you can try the GPS Location Widget. This widget pinpoints the exact location of the user based on their GPS coordinates, so they won't need to enter it at all.

    If you need further assistance, please let us know.