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 / Prevent users from pas...
Power Apps
Unanswered

Prevent users from pasting data to PowerApps

(2) ShareShare
ReportReport
Posted on by 9

Hello everyone,

 

I've tried to search for a solution, however wasn't able to find any. My issue is, that I have TextInput fileds with format as number, where users can enter the invoice amount. The problem is, that some users are not typing the number, but copying it from excel, SAP etc... and it takes also the formatting (e.g. 1000.5; 1000,5; 1,000.5; 1.000,5 etc.)

MartinN2_0-1674736477635.png

(As example, the first number I wrote in notepad and paste it to the input field, the second I wrote and system hasn't allowed me to do something strange like the first one)

 

Is there any way how you can actually restrict the input to still have the number format (because there are calculations based on these inputs)?

 

Thank you

Martin

Categories:
I have the same question (0)
  • Tommi1 Profile Picture
    4 on at

    Hi Martin,

     

    Did you find a solution for this problem? I have same kind of use case on same kind of problem.

  • Shravyashree_01 Profile Picture
    174 Moderator on at

    Hi  @MartinN2 , You can add this in the onChange property

    If(Not( IsMatch(Self.Text,"^\d+(\.\d+)?$") ), Reset(Self);Notify("Please Add an appropriate value ",NotificationType.Information) )

    This would notify the user that the entered value is incorrect 

    (PLEASE NOTE : The RegEx used above checks if it is a positive number, please use the regex that suits your needs)

     

    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.

     

  • Shravyashree_01 Profile Picture
    174 Moderator on at

    @Tommi1 ,Looping you in the reply

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 600

#2
WarrenBelz Profile Picture

WarrenBelz 478 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard