Incident Caller and Priority should be copy and set to short description when form loaded

trtrtrtrtrtrtrt
Mega Contributor

Incident Caller and Priority should be copy and set to short description when form loaded

2 REPLIES 2

Sid_Takali
Kilo Patron
Kilo Patron

Hi @trtrtrtrtrtrtrt the following code will satisfy your requirement. But what is the use of this?

function onLoad() {
    //Type appropriate comment here, and begin script below
    g_form.setValue('description', g_form.getDisplayBox('caller_id').value + ' ' + g_form.getValue('priority'));

}

Please Mark my answer Helpful/Correct

Regards,

Siddharam

shubhamdubey
Mega Sage

@trtrtrtrtrtrtrt 

Try this code .

 

function onLoad(){

var callerDetails = g_form.getDisplayBox('caller_id').value;

var PriorityValue = g_form.getValue('priority');

g_form.setValue('short_description' , callerDetails + " , " + PriorityValue);

}