Radiobtn default value

hi, according the documentation there is an option for default value of a radiobtn, but in my qodlyversion (qodly for 4D v1.6.13) there isnt this feature.
and is there a way to choose the radiobtn via code?

thx
mandi

Hi Manfred,

According to your inquiry, using a radio component via code is easy.

The string Qodly Source that is attached to the radio component must have an initial value (one of the values from the radio options):

Depending on your needs, you can use function events or other events to control that Qodly Source on your page.

Warm regards.

mh, well thats the way i thought and it works having a string variable as qodly source. i tried it with an object and it does not work. maybe my initialisation is wrong?

No @mandi, your initialization is correct.

But what we want to know, did you test it when previewing this page (in preview and in the renderer)? In this case, the default value “ÜG” should be selected.

In that screenshot (build mode), it’s normal that no radio option is selected.