Copy fields from "Problem Ticket" to "Problem Task Ticket"

kam_steven_
Kilo Contributor

I have created a client script to copy fields from "Problem Ticket" to "Problem Task Ticket", it didn't work. Can someone guide me through?

Table=Problem

Type=onLoad

function onLoad() {
    //Type appropriate comment here, and begin script below
if(g_form.isNewRecord() && g_form.getValue('parent') != ''){

var prb = g_form.getReference('parent', setFields);

}

function setFields(prb){

g_form.setValue('assignment_group',prb.assignment_group);
g_form.setValue('priority',prb.priority);

}  
}

Thanks.

Steven

1 ACCEPTED SOLUTION

And then do javascript:parent.priority for an override on the priority.


View solution in original post

29 REPLIES 29

Capture.PNG


And then do javascript:parent.priority for an override on the priority.


Excellent... it works.. Thank you very much for your patient and effort.


So sorry to bothering you again... I only tested one field, however I still couldn't make it works!




find_real_file.png


Do javascript:parent.assignment_group