Triggers on Text-Entry object are not working May 15, 2015 By Prashant Patil i have one text entry field and i am trying to add value to a variable using trigger when user presses the key on text entry object but the value of that variable is not updating, i have also attached a sample file Thanks! textEntry_Limited.story
Gary Collins over 8 years ago05/15/15 at 3:24 pm (UTC) Ok, looking at your file I thought it would have worked correctly. --> When key pressed add value of 1 to 'cnt' I mean why wouldn't it, you are adding the value 1 to a number variable. To get it to work I used the variable '1' that you had setup already with a default value of 1. So know it is: --> When key pressed add variable '1' (which has value of 1) to variable 'cnt' Maybe someone on the community can explain why your original way wouldn't work, cause I am not sure why. Here is the updated file. textEntry_Limited_v2.story
1 Reply
Ok, looking at your file I thought it would have worked correctly.
--> When key pressed add value of 1 to 'cnt'
I mean why wouldn't it, you are adding the value 1 to a number variable.
To get it to work I used the variable '1' that you had setup already with a default value of 1.
So know it is:
--> When key pressed add variable '1' (which has value of 1) to variable 'cnt'
Maybe someone on the community can explain why your original way wouldn't work, cause I am not sure why.
Here is the updated file.
This discussion is closed. You can start a new discussion or contact Articulate Support.