I have a form with text fields that I will pre-populate with data. The text fields will be read-only by default. I want to make it so that when a user wants to make edits, he will need to click on a button and in turn, the text field's background will turn gray and he can make edits to the text field. I can already make the background turn gray but I cannot make the text field open.
This is the code that will run after the button is clicked:
color.ltGray = new Array("G", 0.75);
this.getField('TestField').fillColor = color.ltGray;
this.getField('TestField').access = "open";
The text field's background turns gray but it is still read-only. Any ideas?
Thanks in advance!
Another thing that I was trying that was not working was:
I want to add a PDF file at the end of the form. Maybe there is a different way of typing it for Acrobat?
It's also available as a PDF in the Acrobat SDK.
Regarding your other question about adding a PDF to another, do you want to add it as an attachment, or add the pages from one PDF to another?
You can use the doc.insertPages method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_A croJS.88.504.html