Hi,
I’m having a couple of issues when using the Aspose PDF and would like to get assistance.
- Reading user entered value.
- Displaying values on fields which are active if certain checkbox is ticked.
Below is the PDF when first opened.
image.png (14.2 KB)
The fields employer’s name and phone number do contain values. In this instance, I have to make value change on question no. 12 (Brief description of the injury or illness) and then focus to any other fields to trigger the values to be shown as per below.
image.png (15.3 KB)
My questions are:
- Is there a way to get them shown on opening?
- The value of “Employer’s name” cannot be retrieved by these codes below (i.e. Value yielded empty text) but the phone numbers are fine. Why?
foreach (Field formField in pdfDocument.Form.Fields)
{
Console.WriteLine("Field Name : {0} ", formField.FullName);
Console.WriteLine("Value : {0} ", formField.Value);
}
Thank you.
Regards,