Check box design in print format

Hello All,

I want to change check box to something like that :white_check_mark: instead of 0,1

here in form

but in print format become 1,0

1 Like

@Nada-86

You can try something like this

        {% if condition == 1 %}
            ā˜‘
        {% else %}
            ā˜
        {% endif %}
2 Likes

@Nada-86 use if statement and then you can display any icon or anything you want . example :
change checkbox_field with your field name . I am using svg fontawsome icons . you can use any other icons .

{% if doc.checkbox_field %}
   <svg xmlns="http://www.w3.org/2000/svg" height="16" width="14" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>
{% else %}
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="14" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>
{% endif %}
1 Like

@bahaou give me other option instead svg icons please

@Hardik_Gadesha where can I write this if condition?

@Nada-86

In your custom html code with this jinja condition

1 Like

You Are The Best :star_struck: