Hello Ben!
Thank you for reply
About first question - the code between <td> tags you suggested works fine. Here it is:
but here is my version of code that also works between <td> tags (I was playing with my template before I got your reply. ):
I'm VERY new to smarty templates, so please help me decide which one is better.
I also thought this code:
should be on the beginning of template (+ code between td tags), but obviously not, so I deleted it. Thanks!
About my second question:
The code:
WORKS in template. It displays id, first and last name and email of the client! I got idea from your reply to another thread. You posted code similar to this:
So, I tried to make it in smarty - I have special trial and error method , but I also need some additional fields from Extended Client Fields. Any ideas how to do it?
Thank you VERY MUCH,
Lina
I got it! My special method, remember?
This is code to display id, first and last name and email of the client:
and this is code to display fields from Extended Client Fields Module:
It works great in my template, but please check all of my template code. I don't want to run into problems later.
Thank you sooooo much for Form Tools,
Lina
Thank you for reply
About first question - the code between <td> tags you suggested works fine. Here it is:
Code:
{foreach from=$display_fields item=field name=col_row}
{assign var=field_id value=$field.field_id}
{assign var=field_type value=$field.field_info.field_type}
{assign var=col_name value=$field.col_name}
{assign var=value value=$submission.$col_name}
{if $col_name == "country"}
{smart_display_field_values field_id=$field_id selected=$value}{/if}
{/foreach}
but here is my version of code that also works between <td> tags (I was playing with my template before I got your reply. ):
Code:
{foreach from=$display_fields item=field name=col_row}
{if $field.col_name == "country"}
{smart_display_field_values field_id=$field.field_id selected=$submission.country}
{/if}
{/foreach}
I'm VERY new to smarty templates, so please help me decide which one is better.
I also thought this code:
Code:
{foreach from=$display_fields item=field name=col_row}
{assign var=field_id value=$field.field_id}
{assign var=field_type value=$field.field_info.field_type}
{assign var=col_name value=$field.col_name}
{assign var=value value=$submission.$col_name}
{/foreach}
should be on the beginning of template (+ code between td tags), but obviously not, so I deleted it. Thanks!
About my second question:
The code:
Code:
{$smarty.session.ft.account.account_id}
{$smarty.session.ft.account.first_name}
{$smarty.session.ft.account.last_name}
{$smarty.session.ft.account.email}
WORKS in template. It displays id, first and last name and email of the client! I got idea from your reply to another thread. You posted code similar to this:
Code:
<?php
$account_info = ft_get_account_info($_SESSION["ft"]["account"]["account_id"]);
$emailaddress = ($account_info['email']);
$client_first_name =($account_info['first_name']);
$client_last_name =($account_info['last_name']);
$client_address = $account_info["settings"]["ecf_1"];
$client_place = $account_info["settings"]["ecf_2"];
$client_post_zip = $account_info["settings"]["ecf_3"];
?>
So, I tried to make it in smarty - I have special trial and error method , but I also need some additional fields from Extended Client Fields. Any ideas how to do it?
Thank you VERY MUCH,
Lina
I got it! My special method, remember?
This is code to display id, first and last name and email of the client:
Code:
{$smarty.session.ft.account.account_id}
{$smarty.session.ft.account.first_name}
{$smarty.session.ft.account.last_name}
{$smarty.session.ft.account.email}
and this is code to display fields from Extended Client Fields Module:
Code:
{$smarty.session.ft.account.settings.ecf_1}
{$smarty.session.ft.account.settings.ecf_2}
{$smarty.session.ft.account.settings.ecf_3}
{$smarty.session.ft.account.settings.ecf_4}
{$smarty.session.ft.account.settings.ecf_5}
It works great in my template, but please check all of my template code. I don't want to run into problems later.
Thank you sooooo much for Form Tools,
Lina