Title:
CFHTMLTOPDF tag does not function correctly with radio groups that have no selected option
| View in TrackerStatus/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: