- 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
04-11-2023 12:36 AM
Thanks a lot @Prince Arora, I have implemented as per your suggestion, I am waiting to get a proper response from external system to see whether it will really work as per the requirement.
Requirement is to open the response html code in iframe or new page, from there user should allow to make an appointment to the external system.
I will keep you updated on this post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2023 11:10 PM
Hi @Prince Arora,
I am getting proper XML in the API response body, but when I pass the same to renderWithContent, I still see the blank popup. Could you please suggest?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023 12:11 AM
We need HTML content to be rendered instead of XML
Could you please share you content here what you got as response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 12:49 AM
Sorry, the response is HTML content only, but it need Javascript to run it. Is there a way? Could you please suggest?
Thanks,
Gowri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 10:47 PM
We will get the below html code in the API response. This has to be open in popup window or new page.
Kindly let me know if this is possible?