문제

Here is what I have:

<?xml version="1.0" encoding="UTF-8"?>
<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
<fields>
<field name="text1">
<value>First Last</value>
<field name="checkbox1">
<value>yes</value>
</field>
<field name="checkbox2">
<value></value>
</field>
<ids original="xxxxx" modified="1331062234" />
<f href="http://example.com/test.pdf" />
</xfdf>

The text value gets entered in the PDF, but I can't figure out how to get the checkboxes to recognize that they are checked.

도움이 되었습니까?

해결책

<input type="checkbox" name="checkbox_name" value="yes" />

The xfdf value entry needs to match the checkbox value:

<field name="checkbox_name">
   <value>yes</value>
</field>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top