Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

How to clear Cache

(2) ShareShare
ReportReport
Posted on by 123
When I start filling a form  and then click on cancel, it closes (of course). But when I click on New again to fill another, it brings me the information I filled before (it's not a new one, it resumes the one I cancelled). How can I clear the cache??
Categories:
  • Verified answer
    DBO_DV Profile Picture
    DBO_DV 4,424 on at
    How to clear Cache
    There is a way to do it with variables so you dont have to reset every controll seperatly. 

    In your Cancel button you want to add the following Variable: 
    Set(varReset, true);
    Set(varReset,false);
     In your input controlls you can search in the advanvced property pane for Reset :
    There you can enter the variable. 
     
    By pushing the button all controlls with this Variable in the Reset property fill be put back to their Default (probably blank). 
    It's the fastest way to reset a bunch of input controlls at once. 
     

    If this solved your problem, please mark it as Solved to help others find the solution faster.
    If you found it helpful, consider giving it a Like to support each other in this community!

    Thanks, and happy building!

  • PraveenC Profile Picture
    PraveenC 123 on at
    How to clear Cache
    I dont have form as I am using ScrollBars on Screens
     
     
    And I have a page like this, where users enter all the data.
     
  • Suggested answer
    DBO_DV Profile Picture
    DBO_DV 4,424 on at
    How to clear Cache
    Hey, 
     
    Can you just tell us what you are using exactly? 
    Is it a Form or a bunch of Inputs? 
    If it is a Form you could use this code when you cancel 
    ResetForm(FormName)
    When you click on New you need to have this code:
    NewForm(FormName)
     

    If this solved your problem, please mark it as Solved to help others find the solution faster.
    If you found it helpful, consider giving it a Like to support each other in this community!

    Thanks, and happy building!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard