Hi @rohitsekar1996 ,
Do you want to validate whether data in a textinput only has number?
If so, I suggest you use IsMatch function, which could justify whether data meet the format that you want.
I've made a similar test for your reference:
1)insert a textinput for entering data
2)insert a label to display "Only numbers are allowed" when not meeting requirement
set the label's Text:
"Only numbers are allowed"
set the label's Visible:
!IsMatch(TextInput1.Text,"[0-9]+")&&!IsBlank(TextInput1.Text)
//[0-9] means only allows number
+ means zore to more
Then if you enter texts or special characters, the text will display.
3)insert a button to submit data.
Set the submit button's OnSelect:
If(!IsMatch(TextInput1.Text,"[0-9]+"),
Notify("Only numbers are allowed",NotificationType.Warning),
Patch(....)
)
//when not meet requirement, you will not submit data and get a notification.
Best regards,