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 / OnChange not applying ...
Power Apps
Answered

OnChange not applying on Same Value Input

(0) ShareShare
ReportReport
Posted on by 187

Whenever I input any number at all it automatically converts it to decimal place but every time I input the same number it doesn't convert to decimal place. It's like it recognizes it as exactly the same value with the previous input when repeating the number so it doesn't perform the OnChange. Any ideas or is there a function to accomplish this task? Thank you very much in advance!

 

OnChange Property:

Set(
 varNonTaxBasicSalary, 
 Text(
 Value(
 dcBasicSalary.Text,
 "en-US" 
 ),
 varNoFormat
 )
 )


OnStart:

Set(varNoFormat, "[$-en-US]###,###.00")

 

 

Categories:
I have the same question (0)
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @Revlock97 ,

     

    "OnChange()" indeed triggers only if the text input detects a different value.

     

    If you give him the same value, it won't detect any change.

  • Revlock97 Profile Picture
    187 on at

    @WiZey  Thank you for the response.

    Is there any possible work around on this? 

  • WiZey Profile Picture
    3,023 Moderator on at

    Sure. Could you further elaborate on your objective? I don't get why it is an issue if the "OnChange" is not triggered if you give him the same value.

     

    If you absolutely need the "OnChange", then the text input must detect a difference. One way to force it is to reset the text input after the change is done to make it blank again, that way your variable will save the input and your user can re-enter a new value even if it is the same as before.

  • Revlock97 Profile Picture
    187 on at

    @WiZey  Although It's just a minor issue because if doesn't detect a change, the number inputted would not be converted to decimal form. I just want it to be converted to decimal no matter what

     

    For example below I only inputted "2" so it turned  into 2.00

    Revlock97_0-1662026920509.png

    But when I clear it and input "2" again it doesn't detect a change so the value doesn't turn into decimal form now

    Revlock97_2-1662026987597.png

    I'm still a novice at best with this and don't know a good work around.

     

     
  • Verified answer
    WiZey Profile Picture
    3,023 Moderator on at

    I quickly tried something similar on my side.

     

    I have a text input with the following properties:

     

    WiZey_0-1662032858086.png

    WiZey_1-1662032871704.png

     

    When I fill in "5", it changes the text input into "5,00".

     

    I tried re-writing "5" and it re-changed to "5,00".

     

    I guess the "Reset(Self)" plays a big role in allowing the user to re-enter the same value again and again.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard