Wrong row selection on sc_field_style

I would like to change a row background color depending on its value.
I have created custom field and assigned value to this field. If value is 3152, background color should be red. But instead it changes the next bottom row. I think it is scriptcase error.

OnRecord event
if({subId} == ‘3152’){
sc_field_style({subId}, ‘#DC143C’);
}

Hi! I have an issue just like this. Did you solve it?

Dear @erikita,

Could you let us know if you are still experiencing the issue?

If so, please detail how you are applying the code in the event, because when we perform tests using the same scenario as the topic’s reporter, the condition is obeyed and the macro performs the correct action.

We are waiting for feedback.

Best Regards!