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

Submit form and another record flashes up

I have created a powerapp that for the end user the first screen is a blank/new form and the second screen is a confirmation screen with a label thanking them for sumitting the form.  When I add the link to the live site it works really well, except for the fact that upon sumitting the completed form, the end user sees a previously filled in form flash up really quickly before it navigates to the  confirmation screen.  As soon as it flashed up it's gone again but this is a concern from the point of view of making future apps comtaining sensitive information.

 

Anyone have any ideas why it's doing this?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @AnnaBrodnicki,

 

Could you please share a screenshot about the issue within your app?

 

I have made a test on my side and don't have the issue that you mentioned. The screenshot as below:Test1.gif

 

The user @GK_BPL has faced same issue with you, please check the response within the following thread:
https://powerusers.microsoft.com/t5/General-Discussion/when-submitting-a-new-form-it-will-flash-an-o...

 

Please take a try to set the OnSelect property of the "Submit" button to following formula:

SubmitForm(Form1);
Navigate(Screen2,ScreenTransition.Fade);
ResetForm(Form1) /* <--- Add this code */

Note: The Form1 represents the Edit form control within your app. The DefaultMode property of the Edit form control set to following:

FormMode.New

 

Or you could also consider take a try to set the OnVisible property of the first screen (which contains the the blank/new form) to following formula:

NewForm(Form1)

then check if the issue is solved.

 

 

Best regards,

Kris

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.

View solution in original post

4 REPLIES 4
Post Patron
Post Patron

After submitting the form the data source refreshes and redirects to the first record(that is the record you see). Do you have any expression between submit form and navigate screen function?

Thank you.  No I don't think I do have an expression between submit and navigate, could this solve the issue?

Community Support
Community Support

Hi @AnnaBrodnicki,

 

Could you please share a screenshot about the issue within your app?

 

I have made a test on my side and don't have the issue that you mentioned. The screenshot as below:Test1.gif

 

The user @GK_BPL has faced same issue with you, please check the response within the following thread:
https://powerusers.microsoft.com/t5/General-Discussion/when-submitting-a-new-form-it-will-flash-an-o...

 

Please take a try to set the OnSelect property of the "Submit" button to following formula:

SubmitForm(Form1);
Navigate(Screen2,ScreenTransition.Fade);
ResetForm(Form1) /* <--- Add this code */

Note: The Form1 represents the Edit form control within your app. The DefaultMode property of the Edit form control set to following:

FormMode.New

 

Or you could also consider take a try to set the OnVisible property of the first screen (which contains the the blank/new form) to following formula:

NewForm(Form1)

then check if the issue is solved.

 

 

Best regards,

Kris

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.

View solution in original post

thank you @v-xida-msft, this seems to have done the trick, I tried what you suggested and the form seems to now reset on submit, so it still flashed up the form really quickly but now it's blank rather than containing information already submitted.  Thanks for your help, this does the trick for me.

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,563)