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

Categories:
I have the same question (0)
  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    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

  • firda59 Profile Picture
    372 on at

    @v-hanytian-msft 

     

    Thanks for ur help! hv a nice day!

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard