Any one knows how to show a check box?
# advancedpdf
n
Any one knows how to show a check box?
j
<input type="checkbox"> Used on a form. Of just position a graphic...I have done that for Address Changed on an Invoice Remit. Use a table and absolute positioning.
n
That shows a checkbox that you can click in PDF. Is there a way to show just the box next to text?
j
I have used a graphic of a box and added it two ways:
Copy code
table style=" position: absolute;overflow: hidden; left: 43pt; top: 166pt; height: 13pt; width: 100pt; font-weight:bold;"><tr>
  <td style="font-size: 10; color: #3464ff">Address Change</td>
	</tr></table>
Copy code
table style=" position: absolute;overflow: hidden; left: 43pt; top: 166pt; height: 13pt; width: 100pt; font-weight:bold;"><tr>
  <td style="font-size: 10; color: #3464ff">Address Change  [[[ad the image here]]]</td>
	</tr></table>
OR
I used two Tables for positioning - 1 for the text and one for the Check Box.
n
Thanks. I will give this a try.
f
I've done it like this :
Copy code
<#if record.field?has_content>
    <#if record.field>
        <input type="checkbox" name="cont" checked="true"</input>
     <#else>
         <input type="checkbox" name="cont"></input>
     </#if>
 </#if>
1
s
another way is with the unicode ballot box symbols (checked and unchecked), though the fonts you are using has to support it:
&#9744;
and
&#9745;
1
🙌 1
n
if I am doing this:
Copy code
<td style="width: 50%; margin: 0px;  border: 0px; height: 20px;">
 <input type="checkbox" id="fob_1" name="fob_1" value="1"></input>TEXT for the checkbox
</td>
then the checkbox is on one line, and the "TEXT for the checkbox" is on the next line.