Why can't I get columnvalues or item values in a Style formula?

I’m using js to check the form name, so I can display data correctly from a parent doc vs it’s response doc in a view control. My formulas in 3 other columns all work as expected. Here’s an example:

//display responses differently

var col = cctaskrec.getColumnValue(“NameCol”);

var vdoc:NotesDocument = cctaskrec.getDocument();

if (vdoc.getItemValue(“Form”) == “[Task]”)

{

return(col);

}

else if (vdoc.getItemValue(“Form”) == “[Action]”)

{

var num = vdoc.getItemValue("DocNum");

var subj = vdoc.getItemValue("Subject");

var user = vdoc.getItemValue("ReviewList");

return("Issue " + num + ": " + subj + "  (" + user + ")");

}

When I try to use a similar formula in my Style formula, I get an error because it won’t accept either the columnvalue or document variables. Why is that? Is this a bug?