-
salesdata.vipAsked on September 27, 2017 at 3:35 AM
Thanks Jotform for helping me in my work.
I use geolocation widget at my form. The problem is i want the marker for user location on map being unmoveable. Can we do that? or is the any setting that i should do?
Plase help me. -
Support_Management Jotform SupportReplied on September 27, 2017 at 3:57 AM
There's no setting for this specifically but, you can use CSS as an alternative to prevent users from moving the marker.
I noticed you attempted to add some script on the Geolocation Widget's Custom CSS section.
var marker = new google.maps.Marker({
draggable: true,
raiseOnDrag: false,
icon: image,
shadow: shadow,
shape: shape,
map: map,
position: point
});
Keep in mind this won't work as this section only accepts CSS. Remove all the codes above then replace them with the ones below:
#geolocationContainer {
pointer-events: none;
}
Related guide: How-to-Inject-CSS-Codes-to-Widgets
This should take care of what you're trying to achieve - Prevent users from editing/moving the marker. Kindly give it a try and let us know how it goes.