Removing spaces from text from text entry box
i need setting interaction takes text users enter text entry box on slide 1, removes spaces text, , displays resulting text in caption on slide 2. example, on slide 1, user types "some random text" , presses enter.when slide 2, "somerandomtext" appears in caption.
is there way have captivate run string processing script, example, vartextentrybox1.replace(/ /g,""); , have result show on second slide?
i appreciate help. thanks!
chris
you can use javascript in captivate, sounds you're on right track. i'd pass captivate variable associated text entry box javascript variable, use replace (does need loop spaces? i'm new this, i'd have experiment), , pass result either original variable or new captivate variable, display in caption on next slide.
here few links started using javascript within captivate, if that's part you're stuck on:
http://captivatedev.com/series/captivate-javascript-series/
http://captivatedev.com/2012/07/01/adobe-captivate-6-the-javascript-ap i/
make sure use right syntax/api when referring captivate variables, depending on whether output html5 or swf. there differences between captivate 5.5 , captivate 6 (see second link). if using captivate 6, scorm, , internet explorer, check out link , tests make sure javascript works in courses before lots of hard work: http://www.cpguru.com/warning-adobe-captivate-6-and-javascript-bug/
More discussions in Adobe Captivate
adobe
Comments
Post a Comment