Automate text being typed into a field

MINI LESSONS ›› Actions Editor ››

MINI LESSON

This Mini Lesson will describe using the Actions Editor to simulate text being typed into a field.


GENERAL OVERVIEW OF THIS CONCEPT


 

ADDING A FIELD TO STORE THE ACTUAL TEXT TO BE SHOWN

Add a field named SOURCE to your page, and add the text you'd like to see auto-typed. You can leave the field visible for now, but the goal is to hide the field once you've got this logic up and running. The user will never see this field - it is being used only to store the actual text to be typed.


 


ADDING A FIELD TO SHOW THE TEXT AS IT IS BEING TYPED

Add a field named AutoType to your page. This is the field the text will be auto-typed into. Adjust the field settings as needed to preset the:



As the text appears in this field, it will use these settings you apply.


 


ADD A BUTTON TO START THE PROCESS

What will control when the text starts typing into the field? In your case it might be the entering of the page, but for my purposes, it will be a button the user clicks.


Add a button to the page and give it the caption of Show Me.


 


ADD AN ACTION TIMER CATALOG OBJECT

The Action Timer catalog object is the key component to this entire process. It is the piece that is able to control the delay between the letters appearing in the field.


What's also handy about this Action Timer object is that it allows the user to interact with the page while the timer is waiting for the next letter to show. For example if you have a multiple choice question object on this page as well, the user could interact with it while your text is still typing away.


Add an Action Timer object from the Action Objects catalog category. Configure it as show below:


   


   


ACTIONS EDITOR LOGIC TO CONTROL THE TYPING EFFECT

The logic which controls the typing effect is broken down into:



This will require you to set up one Global variable named gCurChar.


 


Next add the following logic to the Show Me button and the Action Timer object:


 


 



Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator