I need help with a custom text interaction - No Enter Key
Aug 12, 2013
I'm building an interactive storyline based on screen captures from SAP. In one SAP screen, I need the users to be able to type text in multiple fields without pressing Enter.
In SAP, this screen that I am teaching runs as soon as the user presses Enter, so I need to teach the users to not press Enter until all of the necessary information is filled in.
My attempt at this includes a text interaction field and a hotspot on one slide. The idea was: Have the user click in the text field, type something (anything--this is essentially a short-text field), and then click the hotspot, which would be placed over the next field in which they need to type.
I have hidden the hotspot on a layer that does not appear until the first text field is clicked. The hotspot is set with triggers to submit the text interaction, and go to the next slide, where the user can type in the next text field, and so on...
All of this is working correctly. I can successfully advance the slides using the correct method. However, I can't seem to find a way to stop the slide from advancing if the user presses Enter after typing in the text field.
I tried adding a layer with a "Try Again" button that appears if/when the user presses the Enter button, and for all I can tell, this would work, if only the original text interaction wasn't overriding the trigger.
The trigger "Set TextEntry12 equal to the typed value -- When the control loses focus" doesn't seem to come with an option to delete.
I feel like my logic is sound, but that the one trigger I need to be rid of is not adjustable. Attached is portion of my project with captions trying to explain what I've done so far. I hope this makes sense.
The next thought I have is that maybe I need to start from a blank slide and use a static screenshot instead of using the screen-capture method to record these particular slides. Maybe this will allow me to build the slides without a pre-recorded TextEntry12 trigger...
I feel like I'm going to go crazy soon. Please help me!
5 Replies
Hi Daniel
I think I have a solution for you from this thread
Essentially create a shape offscreen to listen for the ENTER key and have it set to show a layer with incorrect feedback. The enter key then triggers the layer rather than going to the next screen
Hope this helps
Blair
Sorry Daniel I tried again but it didn't work, however i think I have a solution.
I'll load up the stroy file so you can see what I did rather than try to explain it as it might not function how you want
Cheers
Blair
Hi Daniel! Looks like Blair is helping you out here, just let us know if you need anything further.
That worked! Awesome! Thank you. I feel like I can repeat that logic.
I do have one quick question. Was it important to place the second slide on a seperate scene? I'm going to be doing this to quite a few slides, so if I can avoid creating a new scene each time, all the better.
I put it in a new scene so that there was no link to the next slide if the user pushed ENTER. You could try it in the same scene (thats what I had to begin with) but it wasn't always working. But that could have been something left over from te existing interaction getting in the way.
This discussion is closed. You can start a new discussion or contact Articulate Support.