I have to change the state of object when user enters the value "1" in the numeric field, so I have state trigger for the same. But problem is that if when I am viewing that slide and if I press key "1" then state of object get changed. but I want it if user press key "1" in the text field/numeric filed only not for entire slide.
I downloaded your file and tried to find another trigger. As Articulate creates a variable when you add an Entry box, you can use it. Press Key trigger does not check whereever the cursor is when you type "1". You can try Variable Changes trigger for Numeric Entry and add a condition as Numeric Entry is equal to (==) 1.
Thanks for quick response Deniz. As suggested I have done this but problem is that variable is changing after "control loses focus". I want is without "control loses focus".
The "control loses focuses" is the way to capture the variable change - so there wouldn't be a way to confirm that they've press the "1" key within the text entry otherwise.
Thanks for reply, but here my original issue is that if I press key "1" in the numeric field then only state of object should change, and I have added the trigger on Object. But problem is that on slide anywhere if I press key "1" the state of object is changing. I am not understanding why its not working only for number field instead of working for complete slide. Can you see it again and suggest something plz?
There isn't a way that I know of to force the user to only press the 1 key within the text entry, so you may want to look at using the value of the variable as Wendy mentioned to trigger the state change to your object.
Hi Ashley, Is there any difference between attached trigger or either both are same. currently their working is same. But I feel that working should be different. then we can achieve the result which I am trying to achieve.
It looks like in the one trigger you've assigned the object as the slide, so any time they're on that slide and press 1, vs. the object of the numeric entry and pressing one there. They both would work the same - as both elements are on that slide and that's where they'll be pressing 1.
10 Replies
Hi Ravindra,
I downloaded your file and tried to find another trigger. As Articulate creates a variable when you add an Entry box, you can use it. Press Key trigger does not check whereever the cursor is when you type "1". You can try Variable Changes trigger for Numeric Entry and add a condition as Numeric Entry is equal to (==) 1.
Hope that it solves your matter.
Thanks for quick response Deniz. As suggested I have done this but problem is that variable is changing after "control loses focus". I want is without "control loses focus".
HI Ravindra,
The "control loses focuses" is the way to capture the variable change - so there wouldn't be a way to confirm that they've press the "1" key within the text entry otherwise.
Hi Ashley,
Thanks for reply, but here my original issue is that if I press key "1" in the numeric field then only state of object should change, and I have added the trigger on Object. But problem is that on slide anywhere if I press key "1" the state of object is changing. I am not understanding why its not working only for number field instead of working for complete slide. Can you see it again and suggest something plz?
Hi Ravindra
see attached sample if this helps
Thanks Wendy for response, but its not exactly what I am looking.
Hi Ravindra,
There isn't a way that I know of to force the user to only press the 1 key within the text entry, so you may want to look at using the value of the variable as Wendy mentioned to trigger the state change to your object.
Hi Ashley, Is there any difference between attached trigger or either both are same. currently their working is same. But I feel that working should be different. then we can achieve the result which I am trying to achieve.
Hi Ravindra,
It looks like in the one trigger you've assigned the object as the slide, so any time they're on that slide and press 1, vs. the object of the numeric entry and pressing one there. They both would work the same - as both elements are on that slide and that's where they'll be pressing 1.
Thanks Ashley for information
This discussion is closed. You can start a new discussion or contact Articulate Support.