Here's your updated file that works:
https://we.tl/t-fEXdELtgDnThere were multiple issues, but not with the widget itself, rather than with how you built the triggers. For example:
- The JavaScript trigger on the last slide looks like a poor copy/paste that doesn't follow JS syntax. And while it's unrelated to the widget, due to the incorrect syntax it will break any other JavaScript code you will use anywhere else in the project.
- The initialization JS code was for some reason pasted twice - once on the first slide and once on the master.
- There was no logic in the triggers on the slide with the text entry box.
- There was no reference to the variable %Answer% in the widget setup.
The updated file I shared will work, but I would strongly suggest taking an online training on using Storyline and triggers in Storyline.