Hi @cchan000 ,
Which one do you mean?
1) user could only enter 1-9 ?
2)user could only enter text that only has 1-9 number?
When user enter invalid text, what action do you want? display a warning or just can not enter into the textinput?
A. how to justify
1)if you want to user could only enter 1-9,please use this to justify:
Value(TextInput1.Text)>=1&&Value(TextInput1.Text)<=9
2)if you want to user could only enter text that only has 1-9 number,please use this to justify:
IsNumeric(TextInput1.Text)&&!(0 in TextInput1.Text)
B.action
(set the textinput's OnChange)
1)if you want to show warning, please try this:
If(formula1=false,Notify("you've entered invalid word",NotificationType.Warning))
//formula1 is the justify formulas that I listed above, please choose one to replace it.
2)if you want to user can not enter invalid text into the textinput,please try this:
set Textinput's Default: var1
set textinput's format to number

user could only enter 1-9
If((Value(TextInput1.Text)>=1&&Value(TextInput1.Text)<=9)=false,Set(var1,Substitute(TextInput1.Text,"0",""));Reset(TextInput1))
user could only enter text that only has 1-9 number
If(0 in TextInput1.Text,Set(var1,Substitute(TextInput1.Text,"0",""));Reset(TextInput1))
Best regards,