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

Community site session details

Session Id : yrmSfFUSdLP3MoTab59Sfa
Power Apps - Building Power Apps
Answered

Powerapps Textbox Default value

Like (0) ShareShare
ReportReport
Posted on 3 Oct 2022 03:20:19 by 23

Hi,

 

I have a custom textbox. The default property is set as SelectedItem.'Name' 

 

If the user clicks on a gallery item, then the 'SelectedItem' variable is set to that record. And if the user clicks on 'new item' button then 'SelectedItem' is set to Blank. 

 

The textbox shows the correct value for the first time. i.e the gallery selection or blank (when a new item). But the problem arises when i enter some text in the textbox (lets say 'abc'). Now if I click on 'new item' it still shows 'abc' and not blank even though 'SelectedItem' is set to Blank (when new item was clicked).

 

 

 

I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,266 Moderator on 03 Oct 2022 at 04:32:47
    Re: Powerapps Textbox Default value

    @jainlaksh05 ,

    Use reset() function inside OnSelect property of the gallery and the OnSelect property of the new button to restore the text input control to the default value.

    Reset(textinputcontrolname)

    Hope it helps !

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473