Alexander,
This is what I have:
<h2>Grand Total: <span class=”grandtotal” /></h2>
var qRes = spjs.utility.getItemByID(
{
“listname”:_spPageContextInfo.pageListId,
“id”:spjs.dffs.data.thisItemID,
“viewFields”:[“Grand_x0020_Total”]
}
);
$(“span.grandtotal”).html(qRes[“Grand_x0020_Total”].split(“;#”)[1]);
It does not accept “_” in the “Grand_x0020_Total” in the last line. It suggests that the “Grand_x0020_Total” be written in dot notation. I insert the dot notation and I get the same error (“Grand_x0020_Total” is the internal name). See error below:
DFFS there is an error in the custom JS textarea
Type error: Cannot read property “Grand_x0020_Total” of null
It needs to be shown on new, edit and display form!
Your help is very much appreciated!