tracker issue : CF-4201537

select a category, or use search below
(searches all categories and all time range)
Title:

CFHTMLTOPDF tag does not function correctly with radio groups that have no selected option

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Henry Hsu / Henry Hsu ()

Created: 03/14/2018

Components: Document Management, PDF Generation (CFHTML2PDF)

Versions: 2016,11.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 11.0.13.303668 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 2

I am trying to use the <CFHTMLTOPDF> tag to generate PDF output but radio groups that have no option selected is appearing in the PDF output with the first option selected.  If I wrap the same HTML around the <CFDOCUMENT format="PDF"> tag, the radio group in the PDF output is rendered correctly (no radio buttons are selected in the group).

Here is the simplified demo that I ran:
 
<cfhtmltopdf>
     <form>
          <div>
               <input name="test_radio_group" type="radio" value="Y"> Yes
               <input name="test_radio_group" type="radio" value="N"> No
          </div>
     </form>
</cfhtmltopdf>

When I ran the above code, the first radio button (i.e. Yes) would be selected.  However, if I run the following code, the PDF output would appear correctly (i.e. no radio buttons are selected):

<cfdocument format="PDF">
     <form>
          <div>
               <input name="test_radio_group" type="radio" value="Y"> Yes
               <input name="test_radio_group" type="radio" value="N"> No
           </div>
     </form>
</cfdocument>

This appears to be a bug with the <CFHTMLTOPDF> tag.

Attachments:

Comments:

This issue has been a huge problem for us. We use cfhtmltopdf for our medical records that are web forms. Because this issue automatically selects an option that is not selected, it is selecting an option in the medical record that the clients did not select. We had to revert back to using cfdocument because of this issue. We cannot have medical records that have incorrect information in them due to a bug in coldfusion. We are using ColdFusion Ent 2016 and ColdFusion Ent 2018 in our production environments and this is an issue on both of them.
Comment by Graham B.
29661 | September 04, 2018 04:20:24 PM GMT