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

What parameters can be passed to a URL to open in new tab?

theBeastMaster
Mega Guru

On Kb articles, there is a button "Create Incident"

Once we click on it, it opens incident form on the same page.

url for the same comes from "glide.knowman.create_incident_link" property.

for eg: this is the url:

incident.do?sys_id=-1&sysparm_query=active=true^comments=(Created after Knowledge search: $[HTML:knowledgeRecord.short_description])&sysparm_stack=knowledge_home_launcher.do

Is there a way, this url can be modified so that it opens the incident form in a new tab or window?

or if anyone can advise where this property is being referred?

7 REPLIES 7

Omkar Mone
Mega Sage

Hi 

 

Can you show how you are using the redirect, is it action.setRedirectURL?

Try this once - 

g_navigation.openPopup("incident.do?sys_id=-1&sysparm_query=active=true^comments=(Created after Knowledge search: $[HTML:knowledgeRecord.short_description])&sysparm_stack=knowledge_home_launcher.do");

Hi Omkar,

 

As mentioned in my post, url is part of system property, which is a string field.

hence, openPopup will not work.

 

Thanks

Hi 

You can try something like this then , PS - it should be a Server Side UI Action for the below to work - 

g_navigation.openPopup(gs.getProperty("glide.knowman.create_incident_link"));

 

Try this and let me know

 

Regards

Omkar Mone

 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

if you are opening the link from server side using action.setRedirectURL() I believe you cannot mention to open in new tab

If you are using client side then that is possible

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader