Forum Discussion
Live character count of essay question box
One more question, is it possible to use your script on multiple slides? Would there need to be a unique script for each slide (I know all of the text entry fields and variables will need to be unique), but is there anything else that would need to change in your script? There will be notes with text inputs on several slides in a row. Thanks.
Since all the script does is find the first input field on the slide and attach an event handler to watch it, you should just need to place the script on each slide where you need to use it. You should clear the previous event handler first (done by the second script with the .dispose() call). The counter script creates a new handler and saves its reference each time it is called.
If you had more than one input field on a single slide, you would need to change the way the field is selected. Currently, elem[0] is thefirst one found on the slide. If there are more, you can reference them as elem[1], elem[2], etc. Otherwise, use a different selector.
- ArrolLofton-7c39 months agoCommunity Member
Thanks so much, that clarifies what I needed to know. You are the best!! Thanks
Related Content
- 11 months ago