issues with a record producer not working correctly post our upgrade

Fraggle Rock
Tera Expert

Hi we are having issues with a record producer working correctly post our upgrade from Vancouver to Washington. 

 

When you complete one of our request forms and the record is created the short description is no longer populating correctly and some values are coming through as undefined or blank

eg -undefined,M01,Content Update/Addition 

the bit that is coming as undefined is a field called course_code1 i believe the issue is in the first line and that the "var list " is not getting set as if i change the 2nd line to var array = ['test']; this does come through

 

 

this is just a snippet from the script but the bit that is playing up. i believe the issue is in the first line that set the var list value as if i replace the 2nd line with var array = ['test']; that does come through in the short discription 

 

var list = producer.course_code1.getDisplayValue().toString();
var array = list.split(',');
var assessmentcodelist = producer.notified_assessment_code_multi.getDisplayValue().toString();
var assessmentarray = assessmentcodelist.split(",");
var courseofferinglist= producer.course_offering_multi.getDisplayValue().toString();
var courseofferingarray= courseofferinglist.split(",");
var courseofferingsum="";
 
        for (var q = 0; q < courseofferingarray.length; q++) {
if(courseofferingsum=='')
{
courseofferingsum= courseofferingarray[q];
}
else{courseofferingsum= courseofferingarray[q]+","+courseofferingsum;          
        }}
 
if (producer.course_or_assess == 'Course') {
    if (checkbox.length == 0) {
 
 
        if (array.length > 1) {
            for (var j = 0; j < array.length; j++) {
                current.short_description = array[0] + "+" + "," + courseofferingsum;
            }
        } else {
            current.short_description = array[0] + "," +courseofferingsum;
        }
    } else {
 
 
        if (array.length > 1) {
            for (var k = 0; k < array.length; k++) {
                current.short_description = array[0] + "+" + "," +courseofferingsum +","+ checkliststring;
            }
        } else {
            current.short_description = array[0] + "," + courseofferingsum +","+checkliststring;
        }
 any help would be appreciated as my head is hearting. this script was working fine before the upgrade i 

 

0 REPLIES 0