Geolocation Field

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
armin o
Posts: 21
Joined: Sun Jan 17, 2016

13 Apr 2016

Dear Support,

can you please provide some info how to set the value of a geolocation field via java script?

How do i enable the map visualization which is used in the native sharepoint form?

Thanks,
Armin

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

13 Apr 2016

Hi Armin,

Please, use the following code to set the geolocation field via JavaScript:

Code: Select all

fd.field('Location').control()._el().find('input:eq(0)').val(10)
fd.field('Location').control()._el().find('input:eq(1)').val(20)
Unfortunately, this field does not support map layout in the server-side rendering mode. As an alternative, I'd recommend to consider using our Dashboard Designer to display markers or bubbles on a map:

http://www.spchart.com/demo/marker-map

armin o
Posts: 21
Joined: Sun Jan 17, 2016

14 Apr 2016

Thanks Dmitry, it works.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests