Skip to main content
Participant
November 13, 2023
Question

<cfhtmltopdf> input fields are blank after submitting form from HTML

  • November 13, 2023
  • 0 replies
  • 109 views

We are attempting to migrate from <cfdocument> to <cfhtmltopdf> for completing and saving static documents & forms, mostly for the "pixel perfect html" and ability to use css classes.
We have a function that generates an html screen, including a form that a user fills in. Upon submitting, we write the same html to a pdf. This has always worked okay in <cfdocument>, but our input elements are now coming in as if they have empty strings as values, rather than the actual form value that was submitted, at least until we click on the input, then the value shows up - until we click elsewhere in the document.

Here's what it looks like upon opening in Adobe Acrobat Pro:

And when I've clicked on a field:

And when I've clicked on another field (the first value disappeared):

 

Is there a setting or permission somewhere that I'm missing to have these input fields display their values correctly?

 

    This topic has been closed for replies.