Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to display data in each corresponding tab?

shiz
Tera Contributor

I have a table named 'Actual Times Details', and now there are three pieces of data in this table. I think we should put these three pieces of data in the corresponding date tab. How should we implement this?

shiz_0-1732088221168.pngshiz_1-1732088326622.png

 

 

1 ACCEPTED SOLUTION

Harish Murikina
Tera Guru

Hi @shiz 

You can do using onload client script, but it is not recommended to use DOM.

try {
var elements = document.getElementsByClassName('tab_caption_text');

// here index 2 means Resolution information section renamed as Resoltion information and Resolution code
elements[2].innerHTML = 'Resolution Information (' + g_form.getValue("close_code") + ")";
} catch(e) { }

HarishMurikina_0-1732092886104.png

 

View solution in original post

1 REPLY 1

Harish Murikina
Tera Guru

Hi @shiz 

You can do using onload client script, but it is not recommended to use DOM.

try {
var elements = document.getElementsByClassName('tab_caption_text');

// here index 2 means Resolution information section renamed as Resoltion information and Resolution code
elements[2].innerHTML = 'Resolution Information (' + g_form.getValue("close_code") + ")";
} catch(e) { }

HarishMurikina_0-1732092886104.png