
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2019 08:57 PM
Hi,
I have a UI Action that uses g_navigation.openPopup.
But somehow whenever i click near the UI Action it will always open or trigger my UI Action.
Here is my Script:
function onclick(){
var url = "/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=88938e66db0100104694e04a4896191a";
g_navigation.openPopup(url);
}
is this a known issue for servicenow?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2019 09:04 PM
Hi
Can you try changing the action name from onclick to something else in the ui action?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2019 09:15 PM
I'm glad it worked, i had run into similar issue in past and i remembered doing something worked for me as well. The thing is there might be another onclick funtion written globally which might call an internal click as well your ui action onclick function.
Cheers 🙂
Regards
Omkar Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2019 09:06 PM
Hi,
It seems this is client side UI action and whenever the UI action is clicked the url should be opened up.
Are you saying the url is getting opened without someone clicking the UI action?
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2019 09:10 PM
Yes, it is getting opened without clicking the UI Action.