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 / Text Field Character C...
Power Apps
Answered

Text Field Character Count on Modern text field (Modern Form)

(0) ShareShare
ReportReport
Posted on by 1,599 Super User 2024 Season 1
Hello,

I am using a plain textbox in a Modern Form and I am trying to set a max character limit. I've followed the below tutorial which is for classic controls, however my text doesn't dynamically update in real-time.

I only see the character text limit numbers change if I click into a different field.

https://lowcodego.com/2022/12/09/power-apps-text-field-character-count/
 
My text label Text property is set to:
300 - Len(ObjectiveDefinition_txt.Value)
I had to use .Value as .Text is not available on the modern controls.
 
The Color property is set to:
If(Len(ObjectiveDefinition_txt.Value) = 300, Color.Red, Color.Black)
The FontWeight property is set to:
If(Len(ObjectiveDefinition_txt.Value) = 300, FontWeight.Semibold, FontWeight.Normal)
Any help with this would be appreciated!
 
Thanks :)
Categories:
I have the same question (0)
  • Verified answer
    Gabriel G. Profile Picture
    831 Super User 2025 Season 2 on at
    Hi,
     
    Make sure you set the 'TriggerOutput' property to 'KeyPress':

     
    By default, component is on 'Focus out', making the event to trigger after focusing out. Once you set it to 'KeyPress', you should get what you expeting.

    I hope it helps!
    ___________________________________________
     
    Please click Does this answer your question 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 a Like.
  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at
    Thanks @GabGadou
     
    Didn't notice that!
     
    Solved ;)

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard