Are you sure check

0
Hi all, I have a delete object button but I want to add a pop up message to make sure the user actually wants to delete the object and didn't accidentally press the delete button. I found a lot online about confirmation messages and suchs but those seem to be for older Mendix versions since the properties setting for confirmation is no longer there.    I figured I need 2 microflows that somehow send a boolean value to each other, but I can't figure out how to make this. How it currently looks:   There is a "verwijder wedstrijd" (Eng: delete competition) button which calls a check microflow: This creates a boolean (no idea if this is the right spot), then opens the pop up page and then has a check if the boolean is true or false, if it's true the wedstrijd will be deleted: The popup page looks like this: I have a microflow under the "Ja, verwijder" button but I don't know what to put there.    I want to set a (or the boolean from my delete button page) boolean true if "Ja, verwijder" is pressed or false if  "Nee" is pressed. Does anyone have a link to where I can find more information on how to do this or can someone explain it to me? My main issue (I think) is that I don't know how to get exchange the boolean value between microflows. Since I have more objects than wedstrijden I'd love to be able to use 1 delete microflow & 1 pop-up page for the different types of object is that is possible?   Thank you for the read and any input!    Kind regards,   Jeroen Burggraaf   PS. my Mendix version is 10.12.10 but that's not an option in the version selector
asked
1 answers
1

Hi Jeroen!

 

From your explanation it looks like you could make use of the default confirmation popup. In such cases there is often no need to pass around booleans and objects to custom yes/no pages.

 

If you are building a webapp using the delete logic in a microflow, this confirmation popup can be found under "microflow settings". You can edit the captions of the buttons as well. See the screenshot I attached.

Screenshot 2025-04-22 223238.png.

 

Your microflow itself only needs to do the delete logic (and optionally related logic such as show a popup that the delete was succesfull or close/show other pages).

 

If, on the other hand, you use a nanoflow instead of a microflow, you can use the "show confirmation" activity, as mentioned in this thread.

 

Hope that helps!

answered