Skip to main content
Navigator | Tier 3
September 15, 2022
Question

About popup input

  • September 15, 2022
  • 5 replies
  • 193 views

hi team

i need to popup a dialog box when AA running to somewhere and stop here.

user can input something and click OK, program can accept the input char and

continue running.

how to implement the function? i just need a simple way!

    5 replies

    Ashwin A.K
    Navigator | Tier 3
    September 15, 2022

    Hi @wang huadong​ ,

     

    There is a Prompt Action which you can use to achieve this, or if you want to get a bit more fancy with it, try creating an Interactive Form with additional features.

     

    Could you give that a try and let us know if it works out for you?

     

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    wang.h2_0Author
    Navigator | Tier 3
    September 16, 2022

    hi Ashwin

    i have tried to use Prompt to popup an input box, ye it can work fine

    once more, if user does not input any char in the box, and click ok directly, may i give a warning message? such as "The box can not be empty!"

    Ashwin A.K
    Navigator | Tier 3
    September 16, 2022

    Hi @wang huadong​ ,

     

    You can try adding the Prompt Action inside of a Loop: While Action and pass in a condition to validate whether the string returned is null or not.

     

    image 

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    Automation Anywhere Team
    September 19, 2022

    Please let us know if Ashwin's great suggestion has helped you. If not, kindly reach out to your CSM/PEM to engage paid professional services.

    wang.h2_0Author
    Navigator | Tier 3
    September 20, 2022

    yes, the suggestion is wonderful! thanks a lot