How do I get an input dialog to keep prompting dialogs until user selects cancel?

I have an input dialog which asks for " which row do you want to delete?". After user enter the row and press on “ok”, the row is deleted and the program continues. My problem is, what if the user wants to delete more than one row? How do I make the input dialog continuously appear until user select cancel? Thank you

Hey @sundalpathyREBORN

After the input dialog activity you can use a message box to display the row deleted msg and at the same time ask user for continuing further.

use a while loop to check for the button pressed in message box. If it’s yes continue with deleting workflow. If no then break the loop.

Hi @sundalpathyREBORN,

Another possible solution for your issues is to use a flowchart with couple of Input Dialogs https://docs.uipath.com/activities/docs/input-dialog and a Flow Decision activity https://docs.uipath.com/activities/docs/flow-decision, as follows:

Here is the the test file InputDialogLoop.xaml (9.6 KB)

Hope this helps
Best regards,
Marius

1 Like

Thanks you so much i created workflow as the same but i have one doubt ,if user insert string value to input dialogue how could we check the condition and again ask the user to input integer value

Hi @Aleem_Khan,

For this check, you could use myResult.IsNumeric

Then the process should look like this:

Hope this helps
Best regards,
Marius

thanks! it works

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.