web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Restrict or Reset nega...
Power Apps
Answered

Restrict or Reset negative values in Gallery TextBox

(0) ShareShare
ReportReport
Posted on by 85

Dear All,

 

I'm working on SharePoint List Form having gallery in it. One of the column is Amount which is Number data type. I want to restrict user from entering minus sign or if entered by user remove the minus sign.

 

Gallery Textbox properties:

default: ThisItem.'Column Name'

OnChange: Select(Parent)

 

Any help will be appreciated!

 

Thanks,

Sanjay Adsure

Categories:
  • Verified answer
    Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @SanjayAdsure201 ,

     

    Can you try the following:

    1. OnChange property 

    If(Value(Self.Text) < 0, Reset(Self));
    
    //OR
    
    If(Value(Self.Text) < 0, Reset(<Enter your Input field name>));

     

    You can notify the user if needed.

    Hope this helps

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard