Advanced Map Pages - Scripted Filter Items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2023 12:20 PM
I am trying to use the features of the "Advanced Map Pages" (https://docs.servicenow.com/bundle/tokyo-platform-user-interface/page/administer/navigation-and-ui/t...), in particular, I am trying to create a filter item that is a drop down of the countries in which the locations (cmn_location) are located. The documentation for creating map page filter items is here:https://docs.servicenow.com/bundle/tokyo-platform-user-interface/page/administer/navigation-and-ui/t...
Since cmn_location.company is string field, not a choice field, I believe I need to use a script to build the filter item values, rather than referencing a data item.
Does anyone have an example script that they have used to build a Map Page Filter Item?
Per the documentation, the script to be included has to include a return in the following format:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2023 12:03 PM
Here's answering my own question, the following script worked:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 12:19 PM
Thanks for posting this, it's a nice solution. I've been very frustrated with how poor the documentation is for