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 !!!
The solution is:
this.getField('foo').readonly = true;
JavaScript for Acrobat API Reference:
https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf