Nov 21st, 2011, 10:34 AM
Hi Waizen,
No worries, you were almost there. Just move the opening & closing <request_merchant_account> node to inside the first loop. That will then be outputted for every submission:
I confess I haven't checked it, but that should work fine.
Let me know if you have any trouble!
- Ben
No worries, you were almost there. Just move the opening & closing <request_merchant_account> node to inside the first loop. That will then be outputted for every submission:
Code:
<mw>
{foreach from=$submissions item=submission name=row}
<request_merchant_account>
{foreach from=$display_fields item=field_info name=col_row}
{assign var=col_name value=$field_info.col_name}
{assign var=value value=$submission.$col_name}
<{$col_name}>{smart_display_field form_id=$form_id
view_id=$view_id submission_id=$submission.submission_id
field_info=$field_info field_types=$field_types
settings=$settings value=$value}</{$col_name}>
{/foreach}
</request_merchant_account>
{/foreach}
</mw>
I confess I haven't checked it, but that should work fine.
Let me know if you have any trouble!
- Ben