Scribus > PDF Generation

How to disable a text field in a form using javascript

(1/1)

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:
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

Navigation

[0] Message Index

Go to full version