Cancel button on Input Dialog

I’ve been creating Microsoft forms for years, and I find it difficult to believe that the UiPath dialog form does not have the ability to have Ok/Cancel buttons. Sometimes the user needs to cancel out of the operation altogether, and this is a very basic functionality. How to accomplish this in UiPath? I need to know whether the user didn’t input anything, in which case I’ll prompt again, or whether they cancelled the operation, which I will end the process. I know the test String.IsNullOrEmpty(varInput) will tell me whether the input variable is invalid, but I need to know if they cancelled. The test doesn’t tell me that, even if they clicked on the exit X in the corner.

Usually, Microsoft forms will have an event OnClose or OnCancel which I can write to. How to accomplish this in UiPath?

@Terry_Marr,

I don’t think easy way to identify this. If it really matters if user didn’t entered value or clicked on cancelled, there is long way to do this. Here is sample workflow.

StateMachine.xaml (12.3 KB)

Thanks,
Ashok :slight_smile: