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 / Modern Text Input cont...
Power Apps
Suggested Answer

Modern Text Input control Reset?

(0) ShareShare
ReportReport
Posted on by 2
My use case is that I want a user to be able to change a value using a modern Text Input Control, lets call it varText.
 
On Screen1 I set the variable varText to "Value1" and user sees it in a Label control.
The user clicks on an Edit-button to modify the value that is assigned to varText. The user is navigated to Screen2 with the modern Text Input control.
The control's value propetry is set to the varText. The user sees the value in the Text Input field and changes it to "Value2". Clicks a button to save it.
The button.OnSelect is set to Set(varText, TextInputCanvas.Value); Navigate(Screen1) - the variable is well updated and the user is directed to Screen1. 
The varText is now "Value2" and our user can see it on Screen1 in the Label control. But if our user made a mistake and actually wanted to set varText to "Value22" they need to edit the text again. They click on the same Edit-button and it takes them to Screen2 and they are expecting that the modern Text Input control field would show "Value2", but it shows "Value1" even though its value property is set to varText and varText is "Value2" and the control was reset... 

What am I missing or is this a known limitation? Show I use the classic Text Input instead?

Thanks in advance for all your suggestions!
Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    The default is only the initial value, if the user changes the value, you need to reset the control to set it to whatever the Variable is now. So you need
    Reset(YourTextInputName)
    You can do this a bit more dynamically with a Classic control as it has a Reset property (just set it to a Boolean Variable and toggle the Variable), however a Modern control will work fine as above.
     
    Please ✅ 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • ET-26021018-0 Profile Picture
    2 on at
    Hi @WarrenBelz, thanks for the response!

    I had already tried the Reset(ModerTextInputName), however, it doesn't Reset it to the updated value (modern control doesn't have any Default property, so I used Value property set to a variable and it wouldn't update it).
    Either there is some logic behind it that I don't get, or it is a bug needs fixing.
     
    I ended up using a Classic Text Input control with Default property set to a variable and Reset when changes are saved, it works fine.
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    It must be an intermittent bug - I tested a Modern control here with what I posted and it worked fine (as it should). I assume you ran the code from the same screen the target control was on ? Also the Variable toggle option with a Classic control can be a bit more flexible as you can reset several controls with the one Variable toggle.
     
    Please ✅ 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please ✅ 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 answering Yes to Was this reply helpful? or give it a Like â™¥
    Visit my blog
    Practical Power Apps    LinkedIn   

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