Forum Discussion
Variable-based Trigger Non-functional (Numeric Entry fields omitted by trigger)
Hello!
I have a few fields (3 text entries and 2 numeric entries), which the user must fill, to get to the layer named "Success"; else they will be shown an error.
Following is the trigger I used:
Show layer Error
When the user clicks "Button 1"
If NumericEntry = value 0 (zero)
or If NumericEntry1 = value 0 (zero)
or If TextEntry = value (blank)
or If TextEntry1 = value (blank)
or If TextEntry2 = value (blank)
Else Show layer Success
The issue is, when I preview this course, the "Success" layer is shown, even though the numeric entry fields are left blank.
I have attached the storyline file herewith.
Any help in this would be appreciated.
Also, can the following trigger be used to make sure that one of the Numeric Entry fields has exactly a ten-digit number?
or If NumericEntry1 = value > 1000000000
or If NumericEntry1 = value < 9999999999
Appreciate it!!!
- AnilKrishnarajCommunity Member
Fount 2 ideas:
2) The field to be used on the screen is a Numeric field; But the variable it is connected to, is a Text Variable. The trigger uses "is not equal to (blank)" instead of "is not equal to 0".
Thank you!
Great finds, Anil! Glad you were able to come across some helpful tips in the community! It will be helpful for folks who come across your post in the future who are looking for something similar.
If any other questions or discoveries come up, feel free to reach out.
Have a great start to your day!