The CreatorCon Call for Content is officially open! Get started here.

UI Action: g_navigation.openPopup always trigger even not clicking the UI Action

Tadz
Kilo Sage

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.

find_real_file.png

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?

1 ACCEPTED SOLUTION

Omkar Mone
Mega Sage

Hi 

Can you try changing the action name from onclick to something else in the ui action?

View solution in original post

7 REPLIES 7

Omkar Mone
Mega Sage

Hi 

Can you try changing the action name from onclick to something else in the ui action?

you mean changing the function name? 

Hi Tadz,

 

Yes try changing the onclick function name, also post the screenshot of the Ui Action.

 

Regards

Omkar Mone

It worked!

I just change the function name from onClick to something else. 

Thanks a lot 🙂