My question can be answered via two different ways:

1) How can I set the font on columns = white (to fake them being hidden)? I currently tried to use FieldName.fontcolor("white") and FieldName.fontcolor = '#ffffff'; however neither of these worked.

2) Alternatively, am I able to access fields that are hidden (i.e. not visible on the SharePoint list)? I currently access fields using ctx.CurrentItem["nj0z"], for example. However, if they are hidden, they cannot be accessed.

Ultimately, I would like to use column A for a calculation on column B; however, I do not want column A to be visible to the user!

I hope this is clear!

1 Answer 1


You could try to hide the whole TR by CSR, sample code for your reference.

(function () {
   var overrideCtx = {};
   overrideCtx.OnPostRender = function(ctx) {
     var rows = ctx.ListData.Row;
     for (var i=0;i<rows.length;i++){
       //var isApproved = rows[i]["_ModerationStatus"] == "Approved";
       //if (isApproved){
         var rowElementId = GenerateIIDForListItem(ctx, rows[i]);
         var tr = document.getElementById(rowElementId);
         tr.style.display = "none";
  • Interesting, I shall give this try and get back to you!
    – Shinobii
    Commented Jun 11, 2019 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.