- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2019 10:15 PM
Hi I'm trying to use window object in UI Action but getting error: Uncaught TypeError: Cannot read property 'open' of null
please don't ask me to enable this: glide.script.block.client.globals. Let me know if we have any alternate options
function print(){
window.open("https://www.google.com","_blank"); // Uncaught TypeError: Cannot read property 'open' of null
}
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 01:27 AM
You can either add it on your list layout of UI Actions by configuring using the gear icon for personalizing list Or Add it on your UI Action form layout by configuring from top of header. Configure -> Form Layout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 02:15 AM
This is the recommended solution? Really?
I had the same problem and it was solved like this. But man, I find it had to call this bad usability. This is just rediculus.
At least the option should be shown on the from with a compehensive tooltip, if it is relevant like this. Otherwise this is just a measure to devastate development time in order to find this issue without any clue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2019 10:45 PM
Hi,
Try to add your UI Action in global scope and check once.
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader