cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Run radiobox using jsl

Jackie_
Level VI

Hi,

 

Is there a way to run the radiobox using set?

Tried the following code but doesn't work

Names Default To Here( 1 );
New Window( "Example", r1 = Radio Box( {"Red", "Green", "Blue"},
das = r1 << get selected;
if(r1 == "Green",

Caption("Green"))

 ) );
r1 << set( 2, runscript(1) );
1 REPLY 1
jthi
Super User


Re: Run radiobox using jsl

Syntax is in Scripting Index and you can use Run Script

jthi_0-1697739239587.png

but you do have some mistakes in your script (you should use das instead of r1 in comparison)

Names Default To Here(1);
New Window("Example",
	r1 = Radio Box({"Red", "Green", "Blue"},
		das = r1 << get selected;
		If(das == "Green", 
			Caption("Green")
		);
	)
);
r1 << set(2, runscript(1));
-Jarmo