Forum Discussion
variables with text entry help
Next challenge, Nathan_Hillard! If I copy your excellent example more than once in a story, the 2nd slide doesn't function properly. I suspect it has to do with the single txtInput variable. I know nothing about Java, so can't determine if that's the issue.
Yes, that example only located the first input box. I modifed it (attached) so you can specify a name for each text entry (right click text entry in timeline, select Accessibility). Give each text entry a unique Alt Text name. Set this name also in the inputTagName variable (top trigger on each slide). Set the targetValue variable in the trigger list too. Now it should locate the input you specify on each slide and compare it to the indicated target value.
If you wanted more than one per slide, you would need some extra variables to track the tag names and target values for each.