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 / Accept input in textbo...
Power Apps
Unanswered

Accept input in textbox if it's divisible by 100, else notify the user and clear the input field. And also change format to "#,###.00" once the input is successfully divisible by 100.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Accept input in textbox if it's divisible by 100, else notify the user and clear the input field. And also change format to "#,###.00" once the input is successfully divisible by 100.

Categories:
  • SqtaMorda Profile Picture
    138 on at

    What do you mean it's divisible by 100, every single number in world is divisible by 100. If you want to check if input number is divisible by 100 without any rest (mod), then solution is below. But then why such format .00?

     

    With txtInput

    Format=TextFormat.Number

    OnChange=

    Set(varMyValue,Mod(Self.Text,100));
    If(
    varMyValue = 0,

    // if statement is true
    Set(varMyOutputValue,Text(Value(txtInput.Text),"##,###.00")),

    // if statement is false
    Notify("Wrong number",NotificationType.Error);Reset(Self))

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard