Link to home
Start Free TrialLog in
Avatar of Sandra Frongillo
Sandra FrongilloFlag for United States of America

asked on

Checkbox that selects contents of a listbox

Hi. Using Hyperion Brio. I've created an EIS page that has a ListBox on it.  I would like to use a Checkbox to select all the items in the listbox or if I deselect the checked checkbox, all items are deselected.

Any help is appreciated!
Avatar of WileECoyote45305
WileECoyote45305
Flag of United States of America image

This should be the basis of your script on the checkbox. It refers to ListBox1, which has 3 items. Modify as needed for your purposes. The listbox should be set to allow multiple selections.

if ( CheckBox1.Checked ) {
ListBox1.Select(1)
ListBox1.Select(2)
ListBox1.Select(3)
}
else {
ListBox1.Unselect(1)
ListBox1.Unselect(2)
ListBox1.Unselect(3)
}
ASKER CERTIFIED SOLUTION
Avatar of WileECoyote45305
WileECoyote45305
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sandra Frongillo

ASKER

Thanks.  I thought I had responded before. It worked!! Thank you for your help!!...

Sandy
Excellent! Glad I could help.

Thanks for the points and grade. Happy Holidays.