radiogroupbutton script not running

Hello,

I’m a little new to building UIs in Touch and I tried to get the radiogroupbutton to work “off the shelf”. It doesn’t run the script in the component. I can get it to work if I set the script to watch for changes to cellradioid in component b1. Then I have to modify the value to get the index of the chosen option.

Anyway, I thought I’d post this as a question before a bug report. Is there something I’m not understanding about how to get this UI component to work without modifying the defaults?

Thanks!
Maria

Hello Maria,

this is indeed a bug. You did the right thing though. The script parameter “From Component” should be pointing to b1 and the “Panel Value” parameter should be cellradioid

If you want the correct button value returned use this script:

set radio = $arg3
set btn = `floor($radio/2)`
echo $btn

$btn will be the value of the selected button.

Cheers
Markus