Forum Discussion
Activate a button when NumericEntry reaches specific length
In my slide I do have a Numeric Entry and a button next to it with the status 'disabled'. How to enable a button when number of characters in Numeric Entry reaches a length of 9 digits in it. How to get this done?
- RichardWatsonSuper Hero
Thilagam,
Depending on what type of number you are working with, here is something that might work.
Create a trigger that changes the button's state to Normal when the Numeric changes if the NumericEntity (or whatever you named the variable) is greater than or equal to a value of 99999999.
Richard
- ThilagamSakkaraCommunity Member
Thank you so much Richard. But do we have any option to change the default NumericEntry object trigger which sets the NumericEntry equal to the typed value When NumericEntry loses focus. Because of this default trigger I have to click outside to make the button enable as NumericEntry taking the value when it loses focus. Can we enable the button when the focus is in NumericEntry?
- RichardWatsonSuper Hero
Thilagam,
As far as I can see, you cannot edit the trigger for a NumericEntry variable. You could add instruction text asking the learner to enter a number and press the Tab key or Enter key, which will make the button appear without having to manually click outside.
Maybe someone else has a workaround that I'm not aware of at this specific moment.
https://articulate.com/support/article/Storyline-What-Object-Loses-Focus-Means