Geting error when try to disable a Button in UiPath APPs - A variable must be specified

I’m using UiPath APPs and I need to disable one button based on the content of one field.

Please look at the picture attached to understand the error.

I do not understanding what is missing…
Any help or hint will be appreciate.

Did you create a variable in the app that will hold the Value of Button?

No, Should I do this ?
Can you provide an example of how to disable one button…?

I did this… but does not work…

Try to create a True or false variable (ButtonVariable) that will hold the Disabled value of the button

In the change event of the Text add and If/else as

MainPage.Text.Value.ToLower().Contains("finalized")

In the Then add Set Value True

In the Else add Set Value False

In the Button under the Disabled select the variable ButtonVariable

Sample results:

When the text doesn’t contains finalized and press enter on the text field

When the text contains finalized and press enter on the text field

This was perfect Marian… worked fine.

Thank you so much

1 Like

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