cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
max81
Impactful Individual
Impactful Individual

Confirm exit message with Exit() VS Launch() with Target.Self

Hi,

 

I'm making MobileApps and WebApps.

 

My problems:

  • Exit() confirm message cannot be created via formula. If I hardcode the confirm message, it works. If i refer to a TextInput.text it doesn't use the text and works like I wouldn't had maintained a confirm text.
  • The Launch() function with the new Target argument don't use the confirm exit message. I got the message "This page is aksing you to confirm that you want to leave - data you have entered may not be saved". And even worse: On mobile (iOS Version 3.20052.16), there is no message at all?!

How do you handle this topic?

I'm also thinking about creating an New Idea to update the Exit function with a Target property.

 

2 REPLIES 2
sayyed007amir
Resolver II
Resolver II

1. Your Exit() will be considered as string If you will refer to a TextInput.text that't why its not working.
2. You can create popup box  for that condition(Use popupbox_var in visible property). When you click on button then write this code:

Set(popupbox_var,true);

 and in popup box use two button yes and no, and also show text there that:
This page is asking you to confirm that you want to leave - data you have entered may not be saved
Use this code on Yes:  Launch(whatever your link)
and on No: 

Set(popupbox_var,false);

 I am attaching a sample popup box not exactly:
image.png

max81
Impactful Individual
Impactful Individual

Thanks for your feedback.

I know how to create a popup, but I don't want to have a static message if I'm closing the actual tab in webbrowser or if I close the app on my iOS device.

And I'm also confused while I get a message in webbrowser if I use the launch() function, but not on my mobile device.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

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