How to Add "Submit" to an Event on Forms

Hello,

On a basic Form task, you can submit a task by using a button. Is there a way to add a submit event to any UI element?

I want to add a second button that updates a hidden value and then submits the action item.

Thanks,

P. Griffin

I believe if you make an ‘Action App’ in Apps you can add the functionality you ask for as you have alot more control, it can then be used in Action Center.

I think it can be done with the old form builder in Studio Desktop, I have pushed the limits of that thing pretty far, but its not fun to figure out and clunky.

Yeah, I was debating doing that. I like how quickly Action Center form tasks can be made in Studio but like you say, when you need logic it is a pain the butt trying to figure out how it is supposed to be done.

It would be my recommendation. I now consider the app builder in Studio to be fully legacy considering the other options we have.

Even if you want an attended form, I have had infinitely better experiences using just a .html form (which works like the form-js form the form builder helps you build). Especially with coding agents, if they understand the syntax of how to build those HTML forms, its far far better than the forms-js one.

Then if you need action center, I feel like apps is now the starting point cause of these things.

Hi @edevries

In UiPath Forms, only Submit buttons trigger the form submission by default you can’t directly attach a submit event to any UI element like a normal field.

However, you can achieve your requirement using a workaround:
Add a second button (type = normal button)
Use a rule/action to update the hidden field
Then trigger the Submit action programmatically (using “Submit” action in rules)

Hello, how do I trigger the Submit action programmatically? Do I need to add a Custom Action that uses a JS script?