PDA

View Full Version : moving to different screens using radio buttons


ultraz57
09-20-2006, 03:17 PM
ok, so I have a installation screen that displays radio buttons, and from that, I want to pull the results of that radio button and skip and go to a different screen. How do I do that? this is my code...

if RadioSelection == "Domestic Installation" then
Screen.Jump("Ready to Install (Domestic)");
end
if RadioSelection == "International Installation" then
Screen.Jump("Ready to Install (INTL)");
end

what am I doing wrong?


as always, Thanks!

Steve_K
09-21-2006, 04:14 AM
See the RadioButton screen section in the helpfile. There you'll find an example ...

AxemanMK
09-21-2006, 05:20 AM
If you are still stuck, try this......... :)

---------------------------------------------
-- Convert the selected radio button control to a number for the comparison.
nSelectedControl = String.ToNumber(SessionVar.Expand("%RadioSelection%"));

-- Check to see which radio button was selected by comparing the selected radio button and each raido button control ID.
if (nSelectedControl == CTRL_RADIO_BUTTON_01) then

Screen.Jump("Ready to Install (Domestic)");

elseif (nSelectedControl == CTRL_RADIO_BUTTON_02) then

Screen.Jump("Ready to Install (INTL)");

end
---------------------------------------------

ultraz57
09-22-2006, 10:40 AM
got it!

thanks!