Controls Enable and Disable


Ryan Sytsma

I am seeing that in all cases, this code will set controls as disabled = true.

This code is in the "ItemClick" event and the "Change" event. The default setting of [selectContract] Disabled = False

The control will alsays go from not disabled to disabled, but not toggle depending on the value typed in the typeAheadCustomer control.



DecSoft

Hello Ryan,

To enable a control, we must set his "Disabled" property to an empty string, because any other value means "disable" the control.

This disable the control:

And this other enable the control:

Additionally, you can use the "Disable" and "Enable" actions.



Ryan Sytsma
Ok, thank you. Disable and Enable functions were not working for me.

DecSoft

Hello Ryan,

Maybe we can find the problem with the Enable and Disable actions, since it's works here as expected. Maybe you need to use the ApplyModel action after Enable / Disable the control?


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.