Announcements
Need a help. In my app user is asking for option of a textbox where they can only be able to type 0, 1 or NA or it can be left blank. Initially we created combo box and restricted but user wants to type in. Please let me know if this can be acheived in PowerApps.
Thanks
["",0,1,"N/A"]
In the items property of a dropdown control.
Or [0,1,"N/A"] As items in a radio control with the default property left blank
Having to type in and being told they are wrong or trying to guess the right answer is not a good user experience. What if they type in "one"?
But that's for dropdown, but they do not want dropdown, can this be done in textbox? I believe ISMatch will work but can't exactly figure tout the syntax.
Hi @cbroy_22,
Do you want to force users only input 0, 1, NA or leave blank in the TextInput control?
If so, please set the OnChange property of the TextInput as below:
If( !(IsMatch( TextInput19.Text, "^[0-1]*$|(NA)" )), Notify( "Plese input valid characters or numbers!", NotificationType.Error ) )
Thanks Qi.. this was what I was looking for
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 379 Most Valuable Professional
11manish 203 Super User 2026 Season 2
MS.Ragavendar 128 Super User 2026 Season 2