Scribus > PDF Generation

How to disable a text field in a form using javascript


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:


[0] Message Index

Go to full version