Forum Discussion
Only display variables with certain values (SL360)
Hi Christopher,
Attached is a rough demo.
On the second slide, the first set of triggers determines how many buttons were selected on the previous slide. The next 10 triggers remove a mask over each row of two boxes (to simulate the number of rows needed in the table). Then, custom variables are used to hold the name of each button. Finally, some JavaScript is used to get just the names of the buttons selected.
The JavaScript could be much more efficient by using If...then structures within a Repeat loop. I kept it simple (albeit with many more lines of code) for clarity.
You'll need to add remaining text entries since up to 10 buttons can be selected. Also, this is rough so you'll want to clean it up, add some error checking, etc. However, if you study the triggers and the JavaScript trigger, I think you'll be able to follow what's happening.
Since this uses JavaScript, remember to publish to test this; you can't view it in Preview mode.