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.
Solved! Go to Solution.
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.
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,
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,
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.
User | Count |
---|---|
122 | |
87 | |
86 | |
75 | |
67 |
User | Count |
---|---|
214 | |
180 | |
137 | |
96 | |
83 |