Free Support Forum -

Dynamic XFA - how to fill field which is readonly and out of xml


I have PDF with dynamic XFA -
I want to fill this PDF with XML (this is working) and set readonly field - which XML not contains - labeled as ‘2. Nr dokumentu’
I tried that:

document.Form.XFA[“Deklaracja[0].Strona1[0].Naglowek[0].RefID[0]”] = “test”;

but its not working, how i can do this?
i think i must use field template (i can read it) and transform it to a field, but how?
PDF is signed and im using incremental save.



Thanks for contacting support.

We have tested the scenario in our environment and tried to fill the read-only field in the PDF but did not get much success. For the sake of detailed investigation, we have logged an investigation ticket as PDFNET-43809 in our issue tracking system. Our product team will further investigate whether it is feasible to fill a read-only field through the API or not. As soon as we receive some feedback from their side, we will let you know. Please spare us little time.

We are sorry for the inconvenience.


any news about this? ticket is still open :frowning: and i cant see details



The linked ticket ID PDFNET-43809 is pending for the analysis and not resolved yet. Our product team will investigate as per development schedules. We will let you know once a significant progress has been made in this regard.


I am facing the exact same problem. Any progress?



We are afraid PDFNET-43809 is still unresolved. We have recorded your concerns and will let you know once any significant update will be available in this regard.


Thank you for your response. Could you provide us ETA?



We are afraid an ETA may not be available before the issue is scheduled for investigations. We have recorded your request and will update you as soon as the ETA will be available. We appreciate your patience and comprehension in this regard.