Numeric Entry Restrict

Oct 28, 2015

hi all,

I am trying to set a limit of two digits numbers in Numeric Entry. (E.g. only 99 not above)

Can I set variables and triggers etc to solve this issue.

please help to sort out this issue.

Thanks in advances. 

3 Replies
Alexandros Anoyatis

I haven't tested this to be absolutely sure, but you could use a trigger to change the value of the variable (say var x) to 0 when variable var x changes, if var x is < 0 or var x is > 99.

You can also include additional triggers to notify about the "validation check" in the form of : Change state of Caption "invalid number" to Normal when variable var x changes, if var x is 0, and Change state of Caption "invalid number" to Hidden when variable var x changes, if var x is not 0.

Walt Hamilton

What Alexandros says is right, but you have to remember that SL does no checking of variables until the field has lost focus,i.e. the user clicks on something else on the screen. That means you can't set the entry to stop or raise an error message after 2 digits are entered. It can only happen after the user indicates they are finished entering.

This discussion is closed. You can start a new discussion or contact Articulate Support.