How to display an external website in a Service Portal page

RichardSaunders
Tera Guru

We are trying to display an external website in a Service Portal page. I have read some posts on here regarding using the CMS iFrame but with no success. 

Is there a 'best-practice' way to do this in Service Portal? 

1 ACCEPTED SOLUTION

Cuong Phan
Kilo Sage

Hi Mukesh,

 

This is simple, you can use iFrame, object or embed in HTML5. Here is an example of emBed.

Step1. Create a "Macro variable" on catalog item

find_real_file.png

Step2. Create a Widget to store your embed HTML source and add widget to macro variable

find_real_file.png

Output:

find_real_file.png

 

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

 

Cuong Phan

DXC Consultant.

Regards,
Cuong Phan
ServiceNow Technical Lead

View solution in original post

4 REPLIES 4

Alikutty A
Tera Sage

Hi,

You could create a new widget and refer your website within an iframe. Iframe is one way to do it, There are other HTML5 tags like object, embed etc which could also be used to achievt the same. Iframe has several drawbacks due to which it is not a recommended practice.

You can refer these links for syntax

https://www.w3schools.com/tags/tag_object.asp

https://www.w3schools.com/tags/tag_embed.asp

Cuong Phan
Kilo Sage

Hi Mukesh,

 

This is simple, you can use iFrame, object or embed in HTML5. Here is an example of emBed.

Step1. Create a "Macro variable" on catalog item

find_real_file.png

Step2. Create a Widget to store your embed HTML source and add widget to macro variable

find_real_file.png

Output:

find_real_file.png

 

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

 

Cuong Phan

DXC Consultant.

Regards,
Cuong Phan
ServiceNow Technical Lead

After following this instructions I only get an error saying that X website refused to load. do you have any suggestions? 

Hi Cuong,

I am not finding the option for the variable type as Macro with label in Quebec version?

 

Regards,

Shailesh