[SOLVED] Passing logged username to an hidden field
Posted: Wed Nov 19, 2008 1:07 am
CMS Version 1.4.1
FrontEndUsers 1.5.3
SelfRegistration 1.2.1
CustomContent 1.5
FormBuilder 0.5.5
FormBrowser 0.2.3
Hello everybody,
I have created a Form with FormBuilder with several fields. One of them is an hidden field, where I want to store the information of the logged username.
After searching some information on the forum, I decided to created a GBC as follow.
Global Content Blocks:
{global_content name='client_username_annonce'}
with GBC defined with
{cms_module module=CustomContent}{$customcontent_loginname}
In the Formbuilder hidden field, I put the tag {global_content name='client_username_annonce'} and I checked the field "Process smarty tags within field?" in the advance settings of the hidden field.
While editing the source code of my web page, I have got following error for the hidden field:
Why did I get such error?
Is my GCB wrongly writtent?
Moreover is there another way to pass the logged username to an hidden field?
Thanks in advance for any advice.
Cheers,
Apo
FrontEndUsers 1.5.3
SelfRegistration 1.2.1
CustomContent 1.5
FormBuilder 0.5.5
FormBrowser 0.2.3
Hello everybody,
I have created a Form with FormBuilder with several fields. One of them is an hidden field, where I want to store the information of the logged username.
After searching some information on the forum, I decided to created a GBC as follow.
Global Content Blocks:
{global_content name='client_username_annonce'}
with GBC defined with
{cms_module module=CustomContent}{$customcontent_loginname}
In the Formbuilder hidden field, I put the tag {global_content name='client_username_annonce'} and I checked the field "Process smarty tags within field?" in the advance settings of the hidden field.
While editing the source code of my web page, I have got following error for the hidden field:
Why did I get such error?
Is my GCB wrongly writtent?
Moreover is there another way to pass the logged username to an hidden field?
Thanks in advance for any advice.
Cheers,
Apo