title: XFA values initially invisible when AcroForm values are set
body: <p>I want to fill out a dual AcroForm/XFA PDF form automatically. I included an XFA dataset packet and all values showed up in Adobe Reader. I set the <code>V=</code> key in AcroForms entries to the new value and all values showed up alternative PDF readers.</p>
  
  <p>However, when I open the PDF with XFA and AcroForm <code>V=</code> entries in Adobe Reader, only the value of the text field that is currently selected is visible:</p>
  
  <p><a href="https://i.stack.imgur.com/NGy52.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NGy52.png" alt="Only the selected field shows text"></a></p>
  
  <p>I cannot find any mention in the <a href="http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf" rel="nofollow noreferrer">PDF specification</a> of a special flag to set when AcroForms and XFA are present. I hypothesized that the order of the <code>XFA</code> and <code>Field</code> keys may be important, but that's not it either.</p>
  
  <p>How can I change <a href="https://phihag.de/2015/acroforms-xfa.pdf" rel="nofollow noreferrer">my PDF file</a> so that the values are visible in Adobe Reader on startup, <em>and</em> in PDF readers which only support AcroForms and not XFA?</p>