How to disable a text field in a form using javascript

Previous topic - Next topic

balam

In the Action tab of a Combo Box, I want to use Javascript to disable a text field when I select a specific Combo Box option.

I have tried unsuccessfully with the following lines:

this.getField('foo').disabled = true;
this.getField('foo').readOnly = true;


Thanks for the help !!!

balam