<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to Enable Geolocation Tracking for Health &amp;amp; Safety Incidents in ServiceNow? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3464912#M1243413</link>
    <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;We have a requirement to capture the user’s location when creating a Safety Incident from the Service Portal. This location should later be available for the Safety Agent during the investigation process.&lt;/P&gt;&lt;P&gt;I tried implementing this in my PDI by installing the Geolocation plugin, but it requires a Google Maps API key. We do not want to use Google Maps; instead, we just need to capture the location details (latitude and longitude or address) without any dependency on Google services.&lt;/P&gt;&lt;P&gt;Could you please suggest the best approach to achieve this? Ideally:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Capture location automatically when the user submits the incident form.&lt;/LI&gt;&lt;LI&gt;Store the location in the incident record for later use.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance, sample scripts, or best practices would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;&lt;STRONG&gt;Pasha&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jan 2026 13:40:54 GMT</pubDate>
    <dc:creator>Imam Pasha</dc:creator>
    <dc:date>2026-01-11T13:40:54Z</dc:date>
    <item>
      <title>How to Enable Geolocation Tracking for Health &amp; Safety Incidents in ServiceNow?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3462401#M1242964</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We have a requirement to enable &lt;STRONG&gt;geolocation tracking&lt;/STRONG&gt; for Health &amp;amp; Safety incidents in ServiceNow. The goal is to capture the user’s location automatically when an incident is created (especially from mobile).&lt;/P&gt;&lt;P&gt;Has anyone implemented a similar requirement?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Which plugins need to be activated?&lt;/LI&gt;&lt;LI&gt;How do we configure geolocation fields on the Incident form?&lt;/LI&gt;&lt;LI&gt;Is there a way to achieve this in &lt;STRONG&gt;Now Mobile&lt;/STRONG&gt; using action-based tracking?&lt;/LI&gt;&lt;LI&gt;If the &lt;STRONG&gt;Mobile Location Tracking&lt;/STRONG&gt; plugin is not available in PDI, what’s the best alternative?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance, steps, or examples would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pasha&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Jan 2026 14:23:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3462401#M1242964</guid>
      <dc:creator>Imam Pasha</dc:creator>
      <dc:date>2026-01-07T14:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Enable Geolocation Tracking for Health &amp; Safety Incidents in ServiceNow?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3462430#M1242965</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/147855"&gt;@Imam Pasha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, this can be achieved in ServiceNow with standard features.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Recommended approach:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Activate the &lt;STRONG&gt;Geolocation plugin&lt;/STRONG&gt; to enable latitude/longitude capture.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Add geolocation (coordinates) fields to the &lt;STRONG&gt;Health &amp;amp; Safety / Incident&lt;/STRONG&gt; form.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;For mobile users, location can be captured automatically when the record is created, based on user consent.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Now Mobile:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;If available, the &lt;STRONG&gt;Mobile Location Tracking&lt;/STRONG&gt; plugin supports action-based tracking.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If it’s &lt;STRONG&gt;not available in PDI&lt;/STRONG&gt;, a common alternative is using:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Client script (browser geolocation API)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Now Mobile action or Virtual Agent to capture location at submit time&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Official docs:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Geolocation plugin:&lt;BR /&gt;&lt;A href="https://docs.servicenow.com/bundle/utah-platform-administration/page/administer/geolocation/concept/geolocation.html" target="_blank"&gt;https://docs.servicenow.com/bundle/utah-platform-administration/page/administer/geolocation/concept/geolocation.html&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Mobile Location Tracking:&lt;BR /&gt;&lt;A href="https://docs.servicenow.com/bundle/utah-mobile/page/product/now-mobile/concept/mobile-location-tracking.html" target="_blank"&gt;https://docs.servicenow.com/bundle/utah-mobile/page/product/now-mobile/concept/mobile-location-tracking.html&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Now Mobile overview:&lt;BR /&gt;&lt;A href="https://docs.servicenow.com/bundle/utah-mobile/page/product/now-mobile/concept/now-mobile.html" target="_blank"&gt;https://docs.servicenow.com/bundle/utah-mobile/page/product/now-mobile/concept/now-mobile.html&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aswin&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 14:48:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3462430#M1242965</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2026-01-07T14:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Enable Geolocation Tracking for Health &amp; Safety Incidents in ServiceNow?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3462911#M1243042</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;Hi Aswin,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have installed the &lt;STRONG&gt;Geolocation plugin&lt;/STRONG&gt; and set up both the &lt;STRONG&gt;Now Mobile&lt;/STRONG&gt; and &lt;STRONG&gt;Mobile Agent&lt;/STRONG&gt; apps on my device.&lt;/P&gt;&lt;P&gt;We want to enable the following functionality:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Users should automatically capture their current location when raising a &lt;STRONG&gt;Health &amp;amp; Safety incident&lt;/STRONG&gt; in &lt;STRONG&gt;Now Mobile&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Agents should be able to track the same location in the &lt;STRONG&gt;Mobile Agent&lt;/STRONG&gt; app during investigation.&lt;/LI&gt;&lt;LI&gt;The docs URL are not able to access it.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please let me know the next steps or any additional configurations required to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pasha&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Jan 2026 05:32:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3462911#M1243042</guid>
      <dc:creator>Imam Pasha</dc:creator>
      <dc:date>2026-01-08T05:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Enable Geolocation Tracking for Health &amp; Safety Incidents in ServiceNow?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3462930#M1243044</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/147855"&gt;@Imam Pasha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is not available OOTB&lt;/P&gt;
&lt;P&gt;You need to customize that&lt;/P&gt;
&lt;P&gt;Health and Safety incidents are always for the workspace where person is injured and no field agent is involved in fixing that i.e. field agent need not visit that place.&lt;/P&gt;
&lt;P&gt;Geo location comes into picture when a field agent is required to travel at the location where issue occured to fix that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 05:45:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3462930#M1243044</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-01-08T05:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Enable Geolocation Tracking for Health &amp; Safety Incidents in ServiceNow?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3464912#M1243413</link>
      <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;We have a requirement to capture the user’s location when creating a Safety Incident from the Service Portal. This location should later be available for the Safety Agent during the investigation process.&lt;/P&gt;&lt;P&gt;I tried implementing this in my PDI by installing the Geolocation plugin, but it requires a Google Maps API key. We do not want to use Google Maps; instead, we just need to capture the location details (latitude and longitude or address) without any dependency on Google services.&lt;/P&gt;&lt;P&gt;Could you please suggest the best approach to achieve this? Ideally:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Capture location automatically when the user submits the incident form.&lt;/LI&gt;&lt;LI&gt;Store the location in the incident record for later use.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance, sample scripts, or best practices would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;&lt;STRONG&gt;Pasha&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jan 2026 13:40:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3464912#M1243413</guid>
      <dc:creator>Imam Pasha</dc:creator>
      <dc:date>2026-01-11T13:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Enable Geolocation Tracking for Health &amp; Safety Incidents in ServiceNow?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3465020#M1243432</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/147855"&gt;@Imam Pasha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can try to use native javascript API to see if it picks latitude and longitude of the browser user is currently using&lt;/P&gt;
&lt;P&gt;-&amp;gt; create 2 variables of type string to store latitude and longitude and hide it always using UI policy&lt;/P&gt;
&lt;P&gt;-&amp;gt; create onLoad catalog client script which sets this hidden variable from portal while user submits&lt;/P&gt;
&lt;P&gt;-&amp;gt; then use record producer script to store those in target field names from those variables&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note: users will have to allow location access from browser settings then only this works&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;It worked for me&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;function onLoad() {
    if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(
            function(position) {
                var lat = position.coords.latitude;
                var lng = position.coords.longitude;
                // Set values in form variables (adjust variables names)
                // g_form.setValue('u_latitude', lat); 
                // g_form.setValue('u_longitude', lng);
                g_form.addInfoMessage('Location captured: Lat ' + lat + ', Lng ' + lng);
            },
            function(error) {
                g_form.addErrorMessage('Geolocation failed: ' + error.message + '. Enable location services.');
            }, {
                timeout: 10000,
                enableHighAccuracy: true
            }
        );
    } else {
        g_form.addErrorMessage('Browser does not support geolocation.');
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurBawiskar_0-1768188049057.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/495095i28DCAD61157E5464/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurBawiskar_0-1768188049057.png" alt="AnkurBawiskar_0-1768188049057.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2026 03:21:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3465020#M1243432</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-01-12T03:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Enable Geolocation Tracking for Health &amp; Safety Incidents in ServiceNow?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3472938#M1244741</link>
      <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;Thanks for proposing the solution it’s working for me as well.&lt;/P&gt;&lt;P&gt;I’m trying to implement something slightly different:&lt;BR /&gt;On my Incident form, I have a Location field (referencing cmn_location).&lt;BR /&gt;Based on the selected Location, I need to automatically display the User’s Location.&lt;/P&gt;&lt;P&gt;Essentially:&lt;/P&gt;&lt;P&gt;User selects a Location (from cmn_location)&lt;BR /&gt;Another field should show the location of the user (caller) or the related user-location field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This functionality we need in NowMobile.&lt;BR /&gt;If you could guide me on how to populate the user location when the Location field changes, that would be very helpful.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 13:13:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-enable-geolocation-tracking-for-health-amp-safety/m-p/3472938#M1244741</guid>
      <dc:creator>Imam Pasha</dc:creator>
      <dc:date>2026-01-22T13:13:25Z</dc:date>
    </item>
  </channel>
</rss>

