Forum Discussion

AnilKrishnaraj's avatar
AnilKrishnaraj
Community Member
6 months ago

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!!!