UiPath Forms - How to click a button while executing DoBlock?

Hello automation pros,

currently I want to implement a status field in my form for the user to see what the robot is currently up to.
I thought about using Activity Trigger Form Button that triggers the status field to be filled but it does not seem to work.
Does someone have any idea on how to accomplish this?

Hi @roman.prestel

Try these steps-

  1. Add a button to your form that the user can interact with to trigger an action.
  2. Add an activity trigger: In your UiPath workflow, add an activity trigger that is associated with the button click event. You can use the “FormActivityTrigger” activity in UiPath, which allows you to handle form events.
  3. Define an action: In the event handler of the activity trigger, define the action you want to take. For example, you can use UiPath activities like “Set Field Value” or “Type Into” to update the status field in your form with the desired status.

Thanks

Hello @Nitya1 ,

thank you for the response!
I cant find the activity “FormActivityTrigger”. Do I need a different package than UiPath.Form.Activities 2.0.3 ?
I only have

  • Create Form
  • Start Form Activity
  • Trigger Form Button

Hi @roman.prestel

You may try these different approaches and see if any one of them works for you.

  1. You can add a Label control to your form and update its text property with the current status of the robot. You can do this using an Assign activity in the code-behind of the form.
  2. Similar to the Label control, you can add a Textbox control to your form and update its text property with the current status of the robot. You can also use an Assign activity to update the Textbox control.
  3. You can use a Button control to display the current status of the robot. You can set the Button’s text property to the current status and disable the Button so that the user cannot click on it. You can use an Assign activity to update the Button’s text property.
  4. You can use a Timer control to update the status field at regular intervals. You can set the Timer’s interval property to a suitable value and update the status field in the Timer’s Tick event.

Thanks,

@roman.prestel

You can add a field in the form and link a variable to it…

And whenever a button is clicked or so in the do block add assign and change the value of variable and it would reflect in the form

Hope this helps

Cheers

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