Hey everyone
I have an HTML table that constructs a text with bullet-points and some other formatting. It also uses translation tags to make it usable in multiple languages. This is a firm-standard text, but we want to give users full customization options.
My idea was to put a capture around this table and than use that as the default in an input tag.
Using the capture works, but only if I print the capture. When used as a default I just get the raw HTML code but with the right translations.
Am I forgetting something or is it not possible to use a table in a default?
My code:
{% capture tax_section_3 %}
<table class="">
<thead>
<tr>
<th class="">{% t "t2025_tax_section_3_3" %}</th>
</tr>
</thead><tbody></tbody>
</table>
<table class="usr-width-100">
<thead>
<tr>
<th class="usr-width-3 usr-align-right">•</th>
<th class="usr-width-97">{% t "t2025_tax_section_3_4" %}</th>
</tr>
</thead><tbody></tbody>
</table>
<table class="usr-width-100">
<thead>
<tr>
<th class="usr-width-3 usr-align-right">•</th>
<th class="usr-width-97">{% t "t2025_tax_section_3_5" %}</th>
</tr>
</thead><tbody></tbody>
</table><table class="usr-width-100">
<thead>
<tr>
<th class="usr-width-3 usr-align-right">•</th>
<th class="usr-width-97">{% t "t2025_tax_section_3_6" %}</th>
</tr>
</thead><tbody></tbody>
</table>
{:/group}
<table class="">
<thead>
<tr>
<th class="">{% t "t2025_tax_section_3_7" %}</th>
</tr>
</thead><tbody></tbody>
</table>
<table class="usr-width-100">
<thead>
<tr>
<th class="usr-width-3 usr-align-right">•</th>
<th class="usr-width-97">{% t "t2025_tax_section_3_8" %}</th>
</tr>
</thead><tbody></tbody>
</table>
<table class="usr-width-100">
<thead>
<tr>
<th class="usr-width-3 usr-align-right">•</th>
<th class="usr-width-97">{% t "t2025_tax_section_3_9" %}</th>
</tr>
</thead><tbody></tbody>
</table>
{% endcapture %}
{{ tax_section_3 }}
{% input custom.tax_letter.tax_section_3 as:text localized:true default:tax_section_3 %}
Thanks for the help!
Jasper