Hi All,
I am new to this technology and struck up with the below issue. Please guide me in finding a solution.
Scenario 1 (Creating new PDF):
I had created a PDF Acro form (NOT a XFA form) using LiveCycle designer. The form has a checkbox, textfield and button. On Click of the button (Save), I am doing the below validation; This validation is working fine. In the server side, I am using a Java (Servlet) to save the PDF to FileSystem.
********************
form1.#subform[0].Button1::mouseDown - (JavaScript, both)
if(CheckBox1.rawValue == 0) {
app.alert({
cMsg: "Warning! Enter the value for Checkbox",
cTitle: "Checkbox"
});
CheckBox1.border.edge.color.value = "255,0,0";
} else {
myDoc.submitForm({
cURL: "http://localhost:9080/FDF_Examples/SavePDFAction",
cSubmitAs: "XFDF"
});
}
*********************
Scenario 2 (Editing a Saved PDF):
I opened the above saved PDF in a browser. The checkbox in the PDF is displaying as "Checked". But
when I click the button (Save), the javascript displays my validation message "Warning! Enter the value for Checkbox".
Even though the checkbox is "checked", the javascript code "CheckBox1.rawValue" is returning a value (0).
When I deselect and select again the checkbox, the javascript code "CheckBox1.rawValue" is returning a value (1).
*********************
Is there any other way to find if the checkbox is selected? Please let me know your thoughts and suggestions. Appreciate your support.
Subha.
You cannot create an AcroForm in LiveCycle Designer. AcroForms are created in Acrobat alone and XFA PDF forms are created in LiveCycle Designer. The two are completely separate applications.
Hope this helps,
Dimitri
WindJack Solutions
www.windjack.com
www.pdfscripting.com
Dimitri Munkirs
WindJack Solutions
pdfscripting.com