I will add the ability to have the “customProp” as an array of FieldInternalNames in the next release of spjs-utility.js.
In the meantime, you can modify your current version by changing this:
if(customProp !== undefined){
arrOfFields.push(customProp);
}
like this:
if(customProp !== undefined){
if(spjs.$.isArray(customProp)){
spjs.$.each(customProp,function(i,p){
arrOfFields.push(p);
});
}else{
arrOfFields.push(customProp);
}
}
Alexander