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

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

I am getting page not found error.

Also, can the user be able to submit the timesheet in this iframe .

Hi,

you are creating UI macro in which scope? global or other

please share the UI macro script and screenshot and also the formatter configuration

Regards
Ankur

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

Its working thank you so much . Is there a way to have a link type/button type field/checkbox type field upon clicking will open the timesheet iframe.