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.
Choose Language Hide Translation Bar
View Original Published Thread

dynamic concatenation of checkbox list output in the same window

Sburel
Level IV

Hello,

I trying to create a simple script where, as various items in a checkbox list are selected in a window, those items are concatenated and displayed dynamically in the same window below the list.

Eventually, I would have a series of checkbox lists whose results are concatenated into a string.

Any suggestion would be appreciated,

Best,

sebastien

Names Default To Here( 1 );
New Window( "Example",
cb = Check Box( {"One", "Two", "Three"}),
text box( "Selected: " || Concat Items( cb << Get Selected(), ", " ) )
);

This post originally written in German and has been translated for your convenience. When you reply, it will also be translated back to German.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User


Re: dynamic concatenation of checkbox list output in the same window

Here is the simple modification to you code to make it work

txnelson_0-1627250332735.png

Look to the Scripting Index to help understand the elements of the script

Names Default To Here( 1 );
New Window( "Example",
	cb = Check Box(
		{"One", "Two", "Three"},
		tb << set text( "Selected: " || Concat Items( cb << Get Selected(), ", " ) )
	),
	tb = Text Box( "" )
);

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User


Re: dynamic concatenation of checkbox list output in the same window

Here is the simple modification to you code to make it work

txnelson_0-1627250332735.png

Look to the Scripting Index to help understand the elements of the script

Names Default To Here( 1 );
New Window( "Example",
	cb = Check Box(
		{"One", "Two", "Three"},
		tb << set text( "Selected: " || Concat Items( cb << Get Selected(), ", " ) )
	),
	tb = Text Box( "" )
);

 

Jim
Sburel
Level IV


Re: dynamic concatenation of checkbox list output in the same window

Thank you!