Open a iframe in a task record.

Shyna1
Tera Contributor

Hi,

Is there a way to open time sheet portal in an iframe in the sc_task record .

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

yes possible

1) create UI macro and use iframe to show the URL

<?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 id="timesheet" src="/tsp" scrolling="no" style="height:500px; width:50%"></iframe>

</j:jelly>

find_real_file.png

2) then create formatter and link the macro to that & add it on sc task form by configuring the form layout

find_real_file.png

Regards
Ankur

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

View solution in original post

7 REPLIES 7

@Shyna 

Hi,

Glad to know that my script worked.

Please mark my response as correct and helpful to close the thread.

Regards
Ankur

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

Use this and check

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

	<button id="button" onclick="window.location.href='/tsp';">Click here to open timesheet</button>

</j:jelly>

Regards
Ankur

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

@Shyna 

Hi,

Glad to know that my script worked.

Please mark my response as correct and helpful to close the thread.

Regards
Ankur

 

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