Need help with form designer

Hello everyone.
I am using create form taskand i need to change fieldtext background color after a checkbox change state.
Have you same example to do it?

I try to create a logic in the interested textfield but not work.

Tanks

1 Like

Did you get the answer on how to do this

Hi @marco.rosti and @shrutisbkar

In UiPath, to change the background color of a TextField based on a Checkbox state in the Create Form Task, first design the form by adding a TextField and a Checkbox. In the Checkbox properties, use JavaScript to detect changes in its state and adjust the TextField’s background color accordingly. For example, use this JavaScript in the checkbox’s OnChange event:

if (checkbox1.checked) {
    textField1.style.backgroundColor = "#FFFF00"; // Yellow when checked
} else {
    textField1.style.backgroundColor = "#FFFFFF"; // White when unchecked
}

Finally, trigger the form in UiPath using the Create Form Task activity. This will apply the color change dynamically based on the checkbox state.

Tanks for the answer.
I’ll try this solution!

I have tried this solution but don’t work for me.
Surely i am not able to set correctly all the thing in the form task.
If you can post a detailed example, could help me.
Tanks