316
Views
3
Comments
Enable button on other button on other button click

Hi All,

How to enable button button on disable of other button click?


Thanks for help,

Jaydeep

2022-06-07 11-25-18
DiogoRomero

Hi jaydeep,


You have a property  called visible associated to each button element 

Instead of the "True"/"False", associate this visible property with specific variables that you can set to true or false according to your needs.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

I think the question is how to set it disabled/enabled, not visible/invisible.

So it is the property Enabled in the screenshot that should be set.

Try the following:

  1. Add a local variable IsEnabledButton to your screen of type Boolean
  2. In the action flow of the OnClick event of the button you press set the ISEnabledButton = Not IsEnableButton
  3. On the button that you want to enable/disable set the Enabled property to the IsEnabledButton variable
  4. If you are building a traditional web application then you have to also add an AjaxRefresh for the button that you enable/disable. For a Reactive web application that is not neccesarry.

Regards,

Daniel

2020-05-07 18-53-00
Rui Barradas
 
MVP

Hello Jaydeep,

Hope you're doing well.

I suggest that you use Enabled property of the button:


You may have a local variable (boolean) that you can set to True or False to control if your button is enabled or disabled. You just need to use that variable and bind it to this Enabled property of your button.


Hope that this helps you!


Kind regards,

Rui Barradas

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.