"Map" to be displayed on Form

waseem5
Kilo Expert

Dear Community,

I have a requirement to show map on form. The URL is built and if this URL is entered in browser address bars opens up the website containing map.

Can host this URL in a smaller display are as a field in SNow form? For those familiar with BMC Remedy - something like a "Display Field" which show anything input to it from URLs to document link.

Thanks and regards

Waseem

1 ACCEPTED SOLUTION

coryseering
ServiceNow Employee
ServiceNow Employee

You would use a URL just like the one you'd use to link to the page:



https://wiki.servicenow.com/index.php?title=Using_Map_Pages#Linking_to_a_URL


3.1.2 Linking to a URL

You can also create a desktop module that links to a map page via a URL.


In the module record, select a Link type of URL (from Arguments:). This selection displays the Arguments field. Enter the sample a URL in this format:


map_page.do?sysparm_name=<map page name>

Note


Note: If the map page title has a space in it, replace the space with %20 for the correct syntax. For example, a map page called Critical Incidents becomes Critical%20Incidents%20 in a URL.

View solution in original post

6 REPLIES 6

adiddigi
Tera Guru

Map as in World Maps? and yes it's possible. Any URL can be displayed INSIDE a form by using an iFrame in a UI page/UI Macro.


Hi Abhiram,


I tried, but the page is not showing anything. The fram where the iFrame is hosted shows blank space.


coryseering
ServiceNow Employee
ServiceNow Employee

Hello Waseem,



Are you trying to iframe a google map? Have you signed up for an API key, and are you using that in your embed?



Google Maps Embed API   |             Google Maps Embed API   |             Google Developers



What errors do you see in your Developer Tools console? Does the page request return a 404 (page not found) or does the response contain a X-Frame-Options header? If so, what value does that header have?



What is the URL of the page that is attempting to load in that iframe?


waseem5
Kilo Expert

Found a lead using Map Pages. but can Map Pages be displayed using iFrames, what is the URL if possible?