cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

How do you set the previously selected radio button in a script?

I have created a script which includes a call for a modal dialog box which has (2)radio buttons. I want the dialog to open with the second radio button selected. Everything I have tried results in the the default first radio button being selected. In fact ultimately, I want the dialog to open with the previously selected radio button selected.
I have scoured the online manuals, online example scripts and JMP script guide to no avail.

1 ACCEPTED SOLUTION

Accepted Solutions
XanGregg
Staff

Re: Radio buttons in a script

The following works for a non-modal dialog, but I don't think there's anything similar for modal dialogs:

New Window( "Example",
rb = Radio Box( {"single", "double", "triple"}, Show( rb << Get() ));
);
rb << Set(2);

View solution in original post

1 REPLY 1
XanGregg
Staff

Re: Radio buttons in a script

The following works for a non-modal dialog, but I don't think there's anything similar for modal dialogs:

New Window( "Example",
rb = Radio Box( {"single", "double", "triple"}, Show( rb << Get() ));
);
rb << Set(2);

Recommended Articles