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 / Text Input modern cont...
Power Apps
Answered

Text Input modern control bug?

(0) ShareShare
ReportReport
Posted on by 11
Hi,
I am using the new text input control and have noticed the following behavior since the recent update:
I set the value of the field using a variable (varTest.surname), which is currently empty. The variable is reinitialized every time I open the screen.
 
Then I manually enter a value into the text box (without saving it) and navigate to another screen.
When I return to the original screen, the previously entered text is still displayed in the text box.
 
Why is the value from the variable (which is empty) not applied in this case?
Am I missing something, or is this behavior expected after the update?
Categories:
I have the same question (0)
  • Verified answer
    Vish WR Profile Picture
    3,748 on at
     
     

    This is expected in the newer controls of Power Apps. Once a user types something, the text input keeps that value (even after navigation) instead of reapplying the variable. The Default only works on first load, not every time you return to the scree

    Screen OnVisible

    Set(varTest, { surname: "" });
    Reset(TextInput1);

     

    TextInput Default property

    varTest.surname
     
  • PA_MDEV Profile Picture
    11 on at
    Thank you @Vish WR for your response. However, I find it unfortunate that.. unlike the old controls.. there is no corresponding option.
  • Suggested answer
    timl Profile Picture
    37,214 Super User 2026 Season 1 on at
     
    As far as I'm aware, this has always been the behaviour. 
     
    The other thing I would add is that the Reset function doesn't apply to the modern text input control. If you attempt to call Reset on a modern text input control, you'll receive a design time error in the editor. 
     
    The most likely cause of this issue is that varTest has not changed. 
     
    The pertinent part of from the Microsoft documentation is this:
     
    >>  Power Fx and Excel both automatically recalculate formulas as the input data change

    If the value of varTest.surname remains as "" when you re-enter the screen and OnVisible is called, the Default formula of the controls will not be recalculated. 
     
    The workaround is to toggle the value of varTest.surname to an interim value. If you modify the OnVisible property like so, that will clear the value of the modern text input control.
     
    Set(varTest, {surname:"Edited" });
    Set(varTest, {surname:"" });
     
     

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard