We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

In VTBs find the Private task number on a Card from CheckList > Create task > for onSubmit script

peter_foreman
Tera Guru

In the VTB (Freeform) board select a card

From the Card select Checklist > Create task > select Incident

Is there a way to get from the Dom the value of the Private task number on the Card for an onSubmit script for the Incident

 

1 ACCEPTED SOLUTION

peter_foreman
Tera Guru

I found this gave me the value I needed: at https://[instanceName].service-now.com/nav_to.do?uri=%2F$vtb.do

top.window.frames[0].frames.document.getElementsByClassName("vtb-card-details")[0].getElementsByClassName("modal-title")[0].innerText;
at https://[instanceName].service-now.com/$vtb.do
top.frames.document
.getElementsByClassName("vtb-card-details")[0].getElementsByClassName("modal-title")[0].innerText;
 

View solution in original post

1 REPLY 1

peter_foreman
Tera Guru

I found this gave me the value I needed: at https://[instanceName].service-now.com/nav_to.do?uri=%2F$vtb.do

top.window.frames[0].frames.document.getElementsByClassName("vtb-card-details")[0].getElementsByClassName("modal-title")[0].innerText;
at https://[instanceName].service-now.com/$vtb.do
top.frames.document
.getElementsByClassName("vtb-card-details")[0].getElementsByClassName("modal-title")[0].innerText;