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 Platform Community / Forums / Power Apps / Cache issue on forms w...
Power Apps
Unanswered

Cache issue on forms when using create & edit form

(0) ShareShare
ReportReport
Posted on by 207

Hi Experts,

 

I am working on PowerApps form creation & edit using gallery control.

In screen 1 , i have a create new button which navigate to newform control and in screen 2 i have a edit button which navigate to same form with edit control (tried edit control with different form also but no luck)

When i play the form , it works fine if i click edit button first , but once i go to create new it will open as a newform and then go back .. after that again if i go to edit button , this time newform only opened not edit control of selected gallery.

 

Hope you understand my point .

So if it happens i have to refresh the browser and then again start playing.

I want to fix this asap .

Please help to sort it out .

 

Thanks 

DK

Categories:
I have the same question (0)
  • Cat Schneider Profile Picture
    488 Most Valuable Professional on at

    My suggestion would be to use a single form, edit or new does not matter. You set the form type with the button OnClick property. 

    On Screen 1, the OnClick property of the New Button should be something like:

    NewForm(FormName);
    Navigate(FormScreenName);

     
    On Screen 2, the OnClick property of the Edit Button should be something like:

    EditForm(FormName);
    Navigate(FormScreenName);

     

    For the Item property of the Form, you can use a Context Variable that is set in the OnClick property of each of the buttons.

     

    The New Button you would update to:

    NewForm(FormName);
    Navigate(FormScreenName,ScreenTransition.None,{formRec:Blank()});


    And the Edit Button you would update to:

    EditForm(FormName);
    Navigate(FormScreenName,ScreenTransition.None,{formRec: ThisItem})

     

    Let me know if that 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard