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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Max length text input
Power Apps
Answered

Max length text input

(0) ShareShare
ReportReport
Posted on by 3

For some reason when setting the max length of a text input fields eg. 10 characters, on a pc it will stop at 10 characters although on a mobile it allows you to continue typing in characters. Once you change out of the input text field it will remove all the extra characters and text will be 10 characters in length.

 

Unsure if its a bug. Does anyone know on how to restrict typing after the max limit is hit on a mobile device. 

 

Any help is greatly appreciated.

 

Thanks

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at

    Hi @Cheno ,

    If the text box is in a Form, set the MaxLength of the Data Card to 10.

    OR

    OnChange of the Text Box

    UpdateContext(
     {
     var10: 
     Left(
     Self.Text,
     10
     )
     }
    );
    Reset(Self)

    Default of the Text Box

    var10

     

    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

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard