DELETING A THING - using a 'confirm popup'

Before I lose my marbles can someone just confirm that you can’t use a Popup to return data in a custom workflow.

Example:

  1. A ‘Delete’ button in a repeating group triggers a Custom Event (that returns a parameter of a yes/no ‘run’) and the custom event shows a Popup with a State of ‘run’ set to ‘no’.
  2. The Popup has a ‘Confirm’ button that sets the Popup State ‘run’ to ‘yes’ and the Custom Event then returns the ‘run’ parameter as ‘yes’ if the state is ‘yes’.
  3. In the trigger workflow a thing is then deleted if the return parameter is ‘yes’.

I can’t get this to work. I know I can send the ‘thing’ to the popup and delete it with the confirm button but this is messy.

So… can I use ‘return data’ using a popup as in my example? I want to use the popup as a ‘reusable element’ in many places to ask user to confirm they are deleting a thing.

Any help much appreciated.
Mark

I’m not sure about returning the parameter, I’d say it is not possible.

But you could use the url to workaround this issue

This video can help you.

Many thanks for that. I already use a ‘reusable element’ popup which I send various different data type ‘things’ to. Then, in the popup, I can delete that ‘thing’.

As I have a lot of places where the ‘thing’ is a different data type I was hoping to just create an easy 1 off CONFIRM popup and then return data ‘yes’ (using a Custom Event) and then the workflow receiving this return ‘yes’ would delete the thing.

It appears that you can’t get return data from a popup so I’ll have to do my deletions within the popup. A little clunkier but ok.

Hope that all makes sense.

1 Like

I think you’re right, you can’t return data from an action in a popup.

Your popup can accept all sorts of types and only delete whats sent but make sure you rest everything when the popup is closed

Thanks, yes I’m using States in the popup to send various ‘things’ to it but it would be so neat top be able to show the popup as a Custom Event and return simple data called ‘yes’ if User clicks ‘Continue’ and then use that return data to do what I need in the Trigger workflow.

Possible.

I created a reusable confirm popup in my app. I have a property for text in it so I can dynamically pass what text I want the user to see before deleting something. When they click confirm on the popup, it just runs js and then hides it. On the actual page or wherever the delete action takes place, I have a js to bubble element that pickup that call and triggers a workflow. From the workflow, I delete it.

That sounds great! I think I need to brush up on my js! Thanks at least I know it’s not possible within standard bubble without some extra js. Much appreciated.