cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Birdta033
New Member

Form Deleting

When creating a new form we have the option to delete which directs you to a page that asks "Are you sure you want to delete?" "Yes" "No". The "No" takes you back to the form while the "Yes" deletes the form. If someone decided to hit delete, then hit "No", then decide they want to delete, and hit "Yes" it deletes the last record in the list and not the form that was being created. Any way to fix this?

2 REPLIES 2
Shanescows
Super User
Super User

You would have to share a lot of your app for me to hunt that down. If I was you I would start by looking at all the code on the New Form. I wonder if you are doing something with OnVisible that is resetting things when you go back to the form after they click NO? 

 

What is the code in your delete function? I assume it is set to delete a variable of some sort. I would figure out what is in that variable and how it is getting changed in the process.

 

Shane

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training

"Remove(Projects_1,Gallery1.Selected);Navigate(BrowseProjects,ScreenTransition.Fade)" is the function that I have on the delete button.

 

It seems that it is changing what is selected once I move from the form page to the "Are you sure you want to delete" page.

 

Tyler

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

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