Ask Your Question

Revision history [back]

Correct your JavaScript as Jeff suggested in the comments and it works just fine:

var startIndex = records[i].value['text'].indexOf("Mannel");

var endIndex = records[i].value['text'].indexOf("TIME");

records[i].value['text'] = records[i].value['text'].substring(startIndex,endIndex-3);

image description