How to change Radio button title with code?

I can populate the radio button choices with values from productOptions.
How do I change the value of the radio button title?

$w('#optionsRadio1').title = "foo";

Doesn’t work.

See: https://www.wix.com/corvid/reference/$w/radiobuttongroup/options

@J.D. I did look there before posting. Can you tell me exactly where on that page it shows how to set the TITLE of the radio button? (As I said, I know how to set the options already…)

I don’t know what you mean by “title”, but in the link above you can see how to set the radio button labels.

@jonatandor35 radio button title shown here, highlighted in red. That’s what I need to change. I already know how to change the labels and values.

For anyone else looking at this, the workaround is to hide the title, and use a text box instead. Name the text box and change that. Would be useful to be able to change the TITILE programmatically.

1 Like

@wix47224 I see. So I don’t think you can change it using Corvid. Turn it off and use a text element instead.

P.S. I see you already mentioned this solution.

@wix47224 Hi there, thanks for this, but how do you hide the label? Cheers