Frequently Asked Question:
Javascript access form fields
Hi there
Is there a possiblity to access pdf form fields with javascript? I would like to create a pdf form with quickpdf library and include a javascript that reacts on user input, e.g. if the value in textfield1 is bigger than 20 then insert into textfield2 60.
borderline: how can a access and sett form fields?
I tried using qp.setFormFieldJavaScript() but I don't know how to access a field value. Could please someone provide me with an example?
would appreciate it
regards tom
Yes, it is possible to interact with form fields using JavaScript in PDF. But all you will use Quick PDF Library for is inserting the JavaScript into the PDF. To know how to interact with form fields using JavaScript you will need to study the JavaScript for Acrobat API Reference.
If you search for "acrobat javascript api" on Google you will find some samples and tips.