Forum Discussion
ChristineSawh
4 years agoCommunity Member
Using JavaScript with True/False Buttons
Hello! I am developing a menu selection course for students and I need assistance.
Students will choose items to build their meal. Each item has a button associated with it. Each button is assoc...
MathNotermans-9
4 years agoCommunity Member
As i mentioned in my out-of-the-blue guess.... the value is never deleted...further more there is only a check on when a button 'is selected'. As you add the values selected to a Storyline text variable ( i create Arrays or JSON Objects in cases like this, making it much easier to sort, select, remove or do whatever is needed with it ) its a bit tougher to find and delete the parts of it when deselecting .
Tried fixing it in your sample...but that didnot work ( yet ). Having trouble deleting parts of your Storyline variable/string. So im gonna remake part of it so all values get pushed into arrays. Then its easy to find and delete an array-entry. Have to focus on other things now, but am coming back to you with a solution...