Enable/Disable field

Hi all,

I have a form that has a field that is currently enabled. I need to disable this field when ever the field’s value is, lets say, “example”. When choosing another record that has any other value besides “example” I would want the field to be enabled.

Where/how would be the best place to implement this.

Extra: is it possible to do the same in a grid?

Thanks for your help in advance,

Bob

I figured out where to set the field to enabled in form (not in a grid), but I am still wondering about setting the field in the grid to behave the same way. Still not sure if that is possible.

Hey bob,

The field which you want to enable/disable, set the auto declaration property as “Yes”. Override ‘Active’ method of the form. Under active method use the condition which you want to enable/disable the field.

if(condition)

{

example.enable(true);

}

else

{

example.enabled(false)

}

Regards,

Raghav.