Input dialogue exception handling when 'x' (closing) input dialogue

Hello!

I would highly appreciate your advice regarding my UiPath code problem.

Here is my input dialogue box and i want to add exception such that when user didn’t choose any value or close the input dialogue box it will throw error and ask this message till the user doesn’t select any value…
how can i achieve this

. i tried with do while loop but it can’t throw any error right?

thanks.

give a try at:

isNothing(creditSelected) OrElse String.IsNullOrEmpty(creditSelected.Trim)
1 Like

thankyou or your response
what is want is-
1.user should select any value
2.value then pass onto the variable
3. if user closes the input box or select [OK] without selecting any value, it needs to throw an error, error should be visible to user(to select any value or any system built)
4. continuously pop the input dialogue until the correct value gets selected by the user.

is (do while) is the only way to solve this?

your insights are much appreciated.

can be checked with

can be modelled e.g. within a message box or others

No, we also would recommend to not risk an endless running loop

i got it


it works just fine

appreciate that

@Slow_Learner
perfect so, the topic can be finalized by marking the solving post
Forum FAQ - How to mark a post as a solution

1 Like

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