
Announcements
Hi, I have three different screens: List Screen, Screen 1, and Screen 2.
On the List Screen, I have a gallery with a button. I have set the `OnSelect` of the button as:
```PowerApps
Set(
varFormMode,
FormMode.Edit
);
Set(
varItem,
'Risk Assessment Details_2'.Selected
);
Navigate(
'Screen 1',
ScreenTransition.Cover,
{
SelectedItem: varItem,
FormMode: varFormMode
}
)
In Screen 1, I have a form with `varFormmode` as the form mode and `varItem` as the item. Additionally, I have a button in Screen 1 with the following actions:
SubmitForm(Form1);
ResetForm(Form1);
NewForm(Form1);
Navigate(Screen2, ScreenTransition.Cover, { LastSubmittedItem: Form1.LastSubmit });
``
In Screen 2, I have a form named Form1_1. When the user clicks on the button, I want Form 1 to be displayed in Screen 2 in view mode only. I tried changing the form mode for Screen 2, but the data is not getting displayed. Also, I have a back button in Screen 2 where, when the user clicks, they will be navigated back to Screen 1 to change the details again.
---
Could anyone please help to fix the issue
Hi @Danny_Dicaprio ,
This is because you have set the mode of Form1 to New, so it will not display data when you back there.
Please try this: Set mode to Edit before back Form1.
Button in Screen2:
OnSelect:
EditForm(Form1);
Navigate(Screen1);
Best regards,
Rimmon