Text input using variables
Dec 13, 2020
I pretty new to storyline and variables, but I'm trying to build a mobile phone simulation where you enter a phone number into a phone by selecting the button with the relevant digit on it, the plan is to have the number appear on the phone screen as it is entered. I have put triggers on all the buttons but when you hit the next number this overwrites the previous one so there is only ever on number displayed. How can I fix this so which ever buttons are selected a string of the digits will appear in the text box.
7 Replies
Try this.
Hi this is good, thank you. Ideally I was looking for the text to populate it starting at the right and moving to the left as more characters were input.
To do that, you're going to have to use javascript.
See the attached.
Hi Walt, that's excellent thank you for your help
Duncan,
Glad that worked for you. When I said you would have to use javascript, I was just being lazy.
For anybody that is interested, it can be done using SL triggers. In fact it may be simpler than the first version.
Thank you, Walt! Very helpful!!!