Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Reset Text Input

(0) ShareShare
ReportReport
Posted on 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!

  • firda59 Profile Picture
    372 on at
    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 at
    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1