Feb 6th, 2017, 4:49 AM
Hey I'm new here
I'm from Germany sorry for my bad englich.
Ok now my question.
It's possible to use a <br> in the {foreach} Loop
to create more lines in the Excel sheet ?
<table>
<tr>
{foreach from=$display_fields item=column}
<th>{$column.field_title}</th>
{/foreach}
</tr>
{foreach from=$submissions item=submission}
{assign var=submission_id value=$submission.submission_id}
<tr>
{foreach from=$display_fields item=field_info}
{assign var=col_name value=$field_info.col_name}
{assign var=value value=$submission.$col_name}
<td>
{smart_display_field form_id=$form_id view_id=$view_id
submission_id=$submission_id field_info=$field_info
field_types=$field_types settings=$settings value=$value
escape="excel"}
</td>
{/foreach}
</tr>
{/foreach}
</table>
I'm from Germany sorry for my bad englich.
Ok now my question.
It's possible to use a <br> in the {foreach} Loop
to create more lines in the Excel sheet ?
<table>
<tr>
{foreach from=$display_fields item=column}
<th>{$column.field_title}</th>
{/foreach}
</tr>
{foreach from=$submissions item=submission}
{assign var=submission_id value=$submission.submission_id}
<tr>
{foreach from=$display_fields item=field_info}
{assign var=col_name value=$field_info.col_name}
{assign var=value value=$submission.$col_name}
<td>
{smart_display_field form_id=$form_id view_id=$view_id
submission_id=$submission_id field_info=$field_info
field_types=$field_types settings=$settings value=$value
escape="excel"}
</td>
{/foreach}
</tr>
{/foreach}
</table>