macro sc_field_style doesn't work correctly

I want to change the style of a field due to values in a grid.
(in OnRecord)


if ({field1} == '1')
   {
       sc_field_style({field1},'#FF0000');
   }

This works. Every field in the records that have the value ‘1’ are displayed with red background :wink:

But I want only to change font color and not background of the cell. So I use this
(in OnRecord)


if ({field1} == '1')
   {
       sc_field_style({field1},,,'#FF0000');
   }

Result is: every content of all fields without regarding of the value are displayed in red font color

What is wrong?

Joe

Realized that background color, font size are not optional like written in the macro description. If you put values inside it works.