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 : NYHMamG6V4dUbwO5UTyofP
Power Apps - Building Power Apps
Answered

Reset Text Input

Like (0) ShareShare
ReportReport
Posted on 28 Jul 2023 01:12:02 by 372

Hello,

 

I have scenario like this:

firda59_0-1690506250173.png

In my gallery, I use this formula for OnSelect:

If(
IsBlank(CurrentMesinPC),
UpdateContext({ CurrentMesinPC: RecapSOW_Update.Selected.Subtitle2_2,
CurrentAreaPC: RecapSOW_Update.Selected.Subtitle2_3 }),
UpdateContext({ CurrentMesinPC2: RecapSOW_Update.Selected.Subtitle2_2 })
)

I want to get area & current machine when I click gallery for the first time, and get next machine when I click gallery for the second time. So, I write this formula on Default's Text Input (area, current machine, and next machine).

firda59_1-1690506512208.png

 

 

I want to delete that TextInput's text after I submit the data (after click 'update' button), I used:

Reset(TextInput)

but it cant work. Does anyone know how to reset data with that scenario?

 

Thankyou!

I have the same question (0)
  • firda59 Profile Picture
    372 on 28 Jul 2023 at 06:05:12
    Re: Reset Text Input

    @v-hanytian-msft 

     

    Thanks for ur help! hv a nice day!

  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on 28 Jul 2023 at 03:03:42
    Re: Reset Text Input

    Hi @firda59 ,

     

    May I ask what data source you have used?

     

    We create a SharePoint List as data source for a Sample.

    vhanytianmsft_0-1690513405979.png

     

    Insert a gallery to show it.

    vhanytianmsft_1-1690513405993.png

     

     

    The Button for Get the CurrentAreaPC:

    vhanytianmsft_2-1690513405994.png

     

     

    Default of TextInput:

    vhanytianmsft_3-1690513405995.png

     

     

    Clear the data of TextInput:

    UpdateContext({CurrentAreaPC: Blank()});

    vhanytianmsft_4-1690513405997.png

     

     

    Testing:

    vhanytianmsft_5-1690513405998.png

     

    vhanytianmsft_6-1690513406000.png

     

     

    Hope this will help you,

     

    Best Regards,

    Tina

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…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 733 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 532 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete