Related Item: Change Value in Displayform with JS
Posted: 07 Aug 2020
Hi,
i want to change only the displayed Information of Related-Items. I looping the related item and check the Value from columns. If the value (for example) is "fin" i want to changed the display information to "finished". I dont want to update the Column in the list, only the view in displayform.
my Code:
thanks in advanced
kind regards
i want to change only the displayed Information of Related-Items. I looping the related item and check the Value from columns. If the value (for example) is "fin" i want to changed the display information to "finished". I dont want to update the Column in the list, only the view in displayform.
my Code:
Code: Select all
var Row = fd.relatedItems(0).data('ctx').ListData.Row;
$.each(Row, function(i, el) {
if(el.Info == "fin") {
// HERE'S the Code i needed.. this doesnt work.
fd.relatedItems(0).data('ctx').ListData.Row[i].Info = "finished";
}
}
kind regards