Open an UI page when a button is clicked on form

Gowtham Kodali
Tera Contributor

Hi,

 

I have created a UI page and I created an UI action button on the form as well 

My requirement is when  the Form button is clicked it should open the UI page  in a  new Window is it possible 

Thank you

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Gowtham,

you can have client side UI action for this and sample script as below in it

This should open the UI page in the new tab

Onclick: openUIPage();

function openUIPage(){

var uiPageSysId = '0d9f357607b85c10540bf2508c1ed0f2'; // pass ui page sys_id here
var url = '/ui_page.do?sys_id=' + uiPageSysId;
g_navigation.open(url, '_blank');

}

Regards
Ankur

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

View solution in original post

7 REPLIES 7

Bhagyashri Sort
Kilo Guru

Hi,

You can use the GlideDialogWindow to open a UI page through UI action.

Refer below link.

https://www.snc-blog.com/2017/06/08/creating-a-pop-up-using-a-glidedialogwindow/

https://www.servicenowelite.com/blog/2013/11/24/glidedialog-window-example

 

Mark it correct and helpful.

Thanks

Bhagyashri Sorte.

Ankur Bawiskar
Tera Patron
Tera Patron

@Gowtham Kodali 

Hope you are doing good.

Did you get a chance to check on the solution provided to resolve your query?

If so, please mark appropriate answer as correct & helpful to close the thread.

If not, please let us know if you need some more assistance.

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Gowtham Kodali 

Did you get a chance to check on the solution provided to resolve your query?

If so, please mark appropriate answer as correct & helpful to close the thread.

If not, please let us know if you need some more assistance.

Regards
Ankur

 

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