Embed external youtube URL in iframe on servicenow UI page

mrunaldudul
ServiceNow Employee
ServiceNow Employee

We have a UI page where we want to embed a youtube video

var introVideoIframe = new Element("iframe", {
width: "100%",
height: "340",
allowfullscreen: "true",
webkitallowfullscreen: "true",
mozallowfullscreen: "true",
});
but we are getting refused to connect error, anyone has idea if this is supported?
mrunaldudul_0-1716308056199.png

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@mrunaldudul 

try this; it worked for me

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
		 <iframe src="https://www.youtube.com/embed/BF4MVJeV7Xw?si=2YvzwWR5roOVFeMW" width="400" height="400"></iframe> 	
</j:jelly>

AnkurBawiskar_0-1716310262443.png

 

 

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

@mrunaldudul 

Hope you are doing good.

Did my reply answer your question?

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

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