- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2023 04:50 AM - edited 04-07-2023 04:55 AM
From UI action, we have outbound API call to external system as response they are sending html code and it has to be opened in iframe or new page, it will be external page not ServiceNow page.
I am receiving the HTML code, now I am not sure how to open it in new page or iframe. Kindly let me know if this is possible.
Thanks Gowri
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2023 11:24 PM
The solution to open in new page using window.open with form hidden inputs as similar to below Reference
javascript - Window.open and pass parameters by post method - Stack Overflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 08:23 AM
You can load you css, js and HTML in a UI page and call the UI page from the GlideModal in the UI action as follows:
var gm = new GlideModal("Name_of_the_UI_page");
It will render the data.
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2023 11:24 PM
The solution to open in new page using window.open with form hidden inputs as similar to below Reference
javascript - Window.open and pass parameters by post method - Stack Overflow