Hi All, we have widget where it is having $window.addEventListener in client controller
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 11:53 PM
Hi all, we have widget where it is having $window.addEventListener in client controller where "message" variable is getting data dynamically. I am unable to find where the message variable is being configured as it is displayed as an array with few variables.
console log:
Client controller code:
Please help me how to check where the message array is being configured generally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 12:24 AM
which widget is that? share some more details.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 12:32 AM
it is an facilities map which gets opened when clicked on this particular button(widget) and that map(window) is from third party and once we select a location and click on confirm, seat field(sp form) gets filled with what we select on map and that map window gets closed. While the seat is selcted and window is closed, I can MessageEvent is being triggered and recieving data object (must be from map window i guess) which is having an array with key-value pairs, i would like to know where that data which is being sent to messageEvent is configured because based on those key-value pairs few other fields in sp portal are being populated.