Need Show name of the person who booked the space & username to be default onload map view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 05:20 AM
Need Show name of the person who booked the space to be default on onload map view itself and username who booked the reservation should be displayed on the map when on load itself.
- On the Map view, select the location, building, and a floor where you have made the reservation.
- Select the map gear settings icon to view Display options.
- Select Show name of the person who booked the space.
- Select Apply.
Reserved or booked spaces show the name of person who booked the space but i want this option to be default and name of person who booked the space should be visible at the time of page loading itself.
when i tried i can make Display options to be defaulted to "Show name of the person who booked the space" but only after clicking apply name is getting visible. Please let me know if anyone has worked and achieve this
mapSettings Angular provider(service) -https://devxx.service-now.com/sp_angular_provider.do?sys_id=e74fc231532e6110fd72ddeeff7b12b8

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 03:18 PM
Can you try the following?
Line number 130
$ctrl.previousOptionSelected = {
value: findInitiallyselectedOption($ctrl.selectedSpaceNamesValues) || SPACE_NAMES_OPTIONS.none,
};
Change to following
$ctrl.previousOptionSelected = {
value: findInitiallyselectedOption($ctrl.selectedSpaceNamesValues)
|| SPACE_NAMES_OPTIONS.booked_by_someone
};
Note: this will be part of customization, for every release you may have to check if any new lines of code added to the angular provider file.
Hope it helps.