cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
emoii
Resolver I
Resolver I

Navigate to new screen resets edit form controls - first time

Hi all

 

A very special issue I encounter. The behaviour is different on the Web/Mobile and when I run the App from the PowerApps Studio.

 

I have an edit form on my first screen with some controls. I fill out those, and have then a Next Button Navigate(displayScreen,screentransition.none).

 

displayScreen have a ViewForm with Item set to Form1.Update .

 

So, when I run it from PowerApps studio, and I fill in some data, hit the button I get to my displayScreen where I can review all the data in the ViewerForm before submiting it.

 

When I run it in the web, first time I click the next button to navigate to the displayScreen, my viewerForm is empty, no data is filled in, and when I hit the Next button I can see that all my controls get wiped. If I click back from the displayScreen and fill the data in again, hit Next, I am able to see them in ViewerFrom before submiting.

 

This is super weird? What to do ?

 

 

----- Solved -----

 

Okay, so I managed to solve this. What I did was use the DefaultMode of the form as .Edit and not New. After I switched to .New and removed the Defaults(MySPOSource) from Items, it worked. It also makes sense as it is a new item I am creating, so the .edit form would not be able to display anything.

1 ACCEPTED SOLUTION

Accepted Solutions

Okay, so I managed to solve this. What I did was use the DefaultMode of the form as .Edit and not New. After I switched to .New and removed the Defaults(MySPOSource) from Items, it worked. It also makes sense as it is a new item I am creating, so the .edit form would not be able to display anything.

View solution in original post

5 REPLIES 5
v-xida-msft
Community Support
Community Support

Hi @emoii,

Which browser do you use to run your app?

Have you taken a try to run your app within different browsers?

I have made a test on my side, and don't have the issue that you mentioned. Please check the attached GIF screenshot for more details:

 

Please check if the Item property of the Display form within your displayScreen to following:

Form1.Updates     /* <-- Please type Updates rather than Update */

Also please check if the Display form in your displayScreen connect to same data source with your Edit form.

 

As an alternative solution, please take a try with the following workaround:

Set the OnSelect property of the "Navigate" button to following:

Set(DraftRecord, Form1.Updates); /* <-- Add this formula */
Navigate(displayScreen,screentransition.none)

Set the Item property of the Display form within your displayScreen to following:

DraftRecord

re-publish your app, check if the issue is solved.

 

If the issue still exists, please consider take a try to re-create a new app, and turn off/disable the "Improved app rendering (final validation)" option within Advanced settings of App settings of your app, check if the issue has been fixed.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi thanks for the reply

 

Didnt seem to help me, it is the same behavoir as my own. Please see the attached mp4 of my issue. Weird, as it works in another app. Only thing is I have three Set() variables in this app I use to Show/Hide a label, Show/Hide a timer, and Hide the form when submitted.

Hi @emoii,

Have you taken a try to run your app within other browsers? Same issue?

Please check if you have type the following formula within the OnVisible property of the displayScreen:

ResetForm(Form1)

 

If the issue still exists, please consider take a try to re-create a new app based on your data source, then check if the issue still exists.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi

 

Tried everything an nothing helps. So I decided to create a new app from scratch, just a simple one.

 

Two screens (Edit and Display), A Button to navigate to Display from Edit. Only changed three settings, 

 

Form1.Item: Defaults(PATestApp)

Button OnSelect: Navigate(Screen2,ScreenTransition.None)

DisplayForm.Item: Form1.Updates

 

And the behaviour is the same. Resets first time, then if I go back type in again, hit Button1, it displays, Chrome and IE.

Okay, so I managed to solve this. What I did was use the DefaultMode of the form as .Edit and not New. After I switched to .New and removed the Defaults(MySPOSource) from Items, it worked. It also makes sense as it is a new item I am creating, so the .edit form would not be able to display anything.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,682)