Notifications
Announcements
Hi all,
I have a canvas app usinga sharepoint list. I want users to only people able to enter a number between 1 and four. What would be the best way to proceed with this? Thanks,
Hi @JL6 ,
You need a text box set to number input with OnChange
If( Value(Self.Text) > 4, Notify("Value must be 4 or less",Error); Reset(Self) )
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
@JL6 @Just small change if you don't want 0 or less than 0 values then
If( Value(Self.Text) < 1 || Value(Self.Text) > 4, Notify("Value must be between 1 and 4",Error); Reset(Self) )
else @WarrenBelz works Perfect.Thanks
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 793 Most Valuable Professional
Michael E. Gernaey 333 Super User 2025 Season 2
Power Platform 1919 268