Form Button

Hi All,

I am keen to know, Could we enable or disable buttons of a executable custom user form in uipath, if yes then how?

Hi @Anjali01

Try to use get attribute with aastate property
In if condition give it as enabled or disabled

Thanks
Ashwin.S

Hi Ashwin,

Could you please assist me what exactly I have to do in if condition.
I have got the aastate property which is “Focusable” now what should i do to disable the button.

Hi @Anjali01

Check the status as unavailable for disabled

Thanks
Ashwin.S

Hi did you check it

Hey there is no Status attribute when i check it in uiExplorer

Hi @Anjali01

Do you have a button which is in disabled state

Thanks
Ashwin.S

Hey attaching an Exe file for illustration let’s say I am trying to disable “Submit” button so that when user will click it no action would be performed.Testing_form.zip (6.6 KB)

Hi @Anjali01

Check this selector

“

”

Thanks
Ashwin S

Hi @Anjali01

Thanks
Ashwin S

selector.xlsx (7.6 KB)

Hi Ashwin,

Using this selector what i have to do to disable “submit” button specified?

hi @Anjali01

do it in a if condition if strvar,tostring,contains(“Focussable”) Click the Submit button
in else dont do anything

Thanks
Ashwin S

Hi Ashwin,

I think this solution is for checking a button status to click it or not.
But my question is dfferent i want to disable the button function itself so that user can’t perform action even clicking on that button.

Thanks,
Anjali

Hi @Anjali01

<asp:Button ID=“YourButton” runat=“server” Text=“Submit” OnClientClick=“this.disabled = true;” />

Examples do this in c# and check the condition
Thanks
Ashwin S

Hey could you please create a workflow for it, that would be really helpful.

Hi @Anjali01

Don’t have vs in my system
Can someone help her @Palaniyappan @lakshman

Thanks
Ashwin.S

1 Like