Step-by-step guide
for (var i = 0, len = fieldScope.items.length; i < len; i++) {
var item = fieldScope.items[i];
if (!item.descriptionAppended) {
var separator = '-';
item.descriptionAppended = false;
//Check if the item has a description field, otherwise, use the customLongText1 field
//which is the description
var desc = item.description;
if (!desc) {
desc = item.customLongText1;
}
item.text = item.customString1+ separator + desc;
}
}
return fieldScope.items;
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|