how to call a UI page by UI Action in workspace

devservicenow k
Tera Contributor

I have Created a UI page - test_page.

 

 

And i have a UI action Button - testReassign.

On clicking test Button the UI page should pop up in the Service operations workspace .

what script should i write  in the UI action button to populate that UI page ?

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@devservicenow k 

this is the syntax

var ui_page_id = '<sys_id_of_your_ui_page>';
    g_modal.showFrame({
        url: '/ui_page.do?sys_id=' + ui_page_id,
        title: 'Attachments',
        size: 'xl',
        height: 500
    });

reference: UI page on Agent workspace 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

11 REPLIES 11

Hi Ankur,

I tried the above code when i click on UI Action on workspace ui page is showing but when i click on ok or cancel button on UI Page it is not redirecting to the form 

No action is happening when i click on UI Page buttons. could you please help me on this

 

 

I have the same issue 🙂 

@Ankur Bawiskar  any idea on how to hide the close button in the modal footer?

Remove it from the html.

Have you got any solution for hiding the close button in the modal footer?