cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

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

Text edit box in radiobox

Hi,

 

Can JMP support Text edit box in radiobox?

Jacksmith12_0-1632944692523.png

 

If so, can someone share an sample script? 

 

Thanks,

Jack

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Text edit box in radiobox

Here is how I would do it:

txnelson_0-1632946987641.png

Just have the input box open when the check box is checked

Names Default To Here( 1 );
nw = New Window( "check boxes",
	V List Box(
		H List Box(
			redCkBox = Check Box(
				"By Check (bill me later)",
				If( redCkBox << get == 1,
					rTxEditBox << visibility( visible );
					rtb << visibility( visible );
				,
					rTxEditBox << visibility( collapse );
					rtb << visibility( collapse );
				)
			),
			rTxEditBox = Number Edit Box( 0.0 ),
			rtb = Text Box( ".00" )
		),
		H List Box(
			greenCkBox = Check Box(
				"By Credit Card",
				If( greenCkBox << get == 1,
					gTxEditBox << visibility( visible );
					gtb << visibility( visible );
				,
					gTxEditBox << visibility( collapse );
					gtb << visibility( collapse );
				)
			),
			gTxEditBox = Number Edit Box( 0.0 ),
			gtb = Text Box( ".00" )
		)
	)
);
rTxEditBox << visibility( collapse );
rtb << visibility( collapse );
gTxEditBox << visibility( collapse );
gtb << visibility( collapse );

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Text edit box in radiobox

Here is how I would do it:

txnelson_0-1632946987641.png

Just have the input box open when the check box is checked

Names Default To Here( 1 );
nw = New Window( "check boxes",
	V List Box(
		H List Box(
			redCkBox = Check Box(
				"By Check (bill me later)",
				If( redCkBox << get == 1,
					rTxEditBox << visibility( visible );
					rtb << visibility( visible );
				,
					rTxEditBox << visibility( collapse );
					rtb << visibility( collapse );
				)
			),
			rTxEditBox = Number Edit Box( 0.0 ),
			rtb = Text Box( ".00" )
		),
		H List Box(
			greenCkBox = Check Box(
				"By Credit Card",
				If( greenCkBox << get == 1,
					gTxEditBox << visibility( visible );
					gtb << visibility( visible );
				,
					gTxEditBox << visibility( collapse );
					gtb << visibility( collapse );
				)
			),
			gTxEditBox = Number Edit Box( 0.0 ),
			gtb = Text Box( ".00" )
		)
	)
);
rTxEditBox << visibility( collapse );
rtb << visibility( collapse );
gTxEditBox << visibility( collapse );
gtb << visibility( collapse );

 

Jim

Recommended Articles