Change label of field based on radio value.

Hi, i have a radio field (fldRadio) with two value: S or P.
I want to change a label of another fields:

If ({fldRadio} == ‘S’){
sc_label({fldText}) = ‘Society’;
} else {
sc_label({fldText}) = ‘Person’;
}

In javascript onChange of radio not work.

Which text is shown? Only Person? Or nothing?

nothing is shown

In javascript onChange of radio you should write pure JavaScript code (no SC macros and variables)