Hi All,
I am new here, and still a bit new to CMS Made Simple, I have used joomla for a while, I noticed they are very similar. However, I am now working locally on a website, my problem is that I need to change the name fields of the "feedback-form" , using a different language, and when I do that, the form works, I receive the emails, but where I should have the text from the different fields, I have nothing instead. So for example I just receive the email like this:
Feedback from localhost/...
Wed, 10 Jan 2011 16:40:03 +0200
Name:
Email:
Country:
Feedback:
If I don´t change the field-names, it works correctly.
Can someone help me with that pls?
Thanks,
Best!
Formbuilder - name fields in another language
Re: Formbuilder - name fields in another language
On the FB email submission template page you'll find the available variables for the template. For one of my forms I have one variable 'name' which i can call with both {$name_} and {$fld_48}. (the number '48' will be different for your form)
Which one are you using?
When you change the name for the field, the first variable $name will not work anymore, the second will.
Maybe you can post your FB email submission template?
Which one are you using?
When you change the name for the field, the first variable $name will not work anymore, the second will.
Maybe you can post your FB email submission template?
Make your community a better place!
Re: Formbuilder - name fields in another language
Hi M@rtijn, thanks for your answer.
I am using the standard "feedback-form"
As you said, once you change the name, it doesn´t work because it is different n the code of the module, but what about if you add a new field and you specify a new name? It should work isn´t it?
Could it be because I´m using chinese text for the field names?
I never used variables, can you explain me how to use them in this case? Do I need to download the XML file from the module and edit it manually? If yes, where shall I put variable strings?
Thanks for your patience.
I am using the standard "feedback-form"
As you said, once you change the name, it doesn´t work because it is different n the code of the module, but what about if you add a new field and you specify a new name? It should work isn´t it?
Could it be because I´m using chinese text for the field names?
I never used variables, can you explain me how to use them in this case? Do I need to download the XML file from the module and edit it manually? If yes, where shall I put variable strings?
Thanks for your patience.
Re: Formbuilder - name fields in another language
Sorry, I just saw I made a mistake in my previous post. Maybe that's why you haven't found the solution yet.
Actually, the code of the module doesn't change, no need to edit files and upload them again. All settings are done within the admin of the module.
Go to "Extensions" -> "FormBuilder", click on the name of the form ('feedback-form'). I assume you have specified a "*Email Results to set Address(es)" field. Click on that field and go to advanced settings. This is were you'll find the email template.
For example, you had a field called 'name', you translated it to 你好 (i think, my chinese is not so good
).
Before you could use {$name} in your template, but that will not work anymore. I think putting Chinese characters in the smarty variable will not work either.
BUT, you can still use the alternative smarty variable calls! If you look at the 'Variables For Template' located below the email template textbox you'll find your variable 'name' or '你好', behind it you'll see something like this {$fld_48}. The number 48 will be different for you.
You can putt this in to the template and it will work again.
If you don't succeed, please copy the email template to a forum post and also include the 'Variables For Template' located below the email template textbox.
I'll try to help you out
Actually, the code of the module doesn't change, no need to edit files and upload them again. All settings are done within the admin of the module.

Go to "Extensions" -> "FormBuilder", click on the name of the form ('feedback-form'). I assume you have specified a "*Email Results to set Address(es)" field. Click on that field and go to advanced settings. This is were you'll find the email template.
For example, you had a field called 'name', you translated it to 你好 (i think, my chinese is not so good

Before you could use {$name} in your template, but that will not work anymore. I think putting Chinese characters in the smarty variable will not work either.
BUT, you can still use the alternative smarty variable calls! If you look at the 'Variables For Template' located below the email template textbox you'll find your variable 'name' or '你好', behind it you'll see something like this {$fld_48}. The number 48 will be different for you.
You can putt this in to the template and it will work again.
If you don't succeed, please copy the email template to a forum post and also include the 'Variables For Template' located below the email template textbox.
I'll try to help you out
Make your community a better place!
Re: Formbuilder - name fields in another language
thanks so much, very kind from you.
I´m gonna try it out following your instructions, and get back to you with the results
I´m gonna try it out following your instructions, and get back to you with the results

Re: Formbuilder - name fields in another language
ok I have been there, I understood what you mean, and probably what to do.. but the problem is that I don´t why where there should be the code of the template is empty!
I am using an old version of the CMS, 1.4, cause I have to do like that temporary.. it´s something was done already and I have to continue on that at the moment.. I cannot risk to update it, if something goes wrong.. but I have downloaded the new form-builder, which is the 0.6.4 what do you suggest ? Is it normal that when I go inside Form-Builder/Advanced Settings the "Email Template" text area is empty ?
And yes, below I have the following:
-----------------------------------------------------------------------
Variables For Template
Variable Field Represented
{$sub_form_name} Form Name
{$sub_date} Date of Submission
{$sub_host} Your server
{$sub_source_ip} IP address of person using form
{$sub_url} URL of page containing form
{$fb_version} FormBuilder version
{$TAB} Tab Character
{$______} / {$fld_30} 姓名
{$____________} / {$fld_31} 电子邮箱
{$______} / {$fld_32} 国家
{$____________} / {$fld_33} 反馈意见
Yet another way of accessing field values is via $fieldname_obj, $alias_obj, or $fld_#_obj, where each field is an object containging:
name Field Name
type Field Type
id Internal Field ID
value Human-readable Value
valueArray Array of field value(s)
e.g., you could use "{$fld_1_obj->name} = {$fld_1_obj->value}
Alternate field names can be used interchangeably (especially useful if Smarty is choking on characters outside of ASCII 32-126).
Other fields will be available as you add them to the form.
-----------------------------------------------------------------------
Thanks again!
I am using an old version of the CMS, 1.4, cause I have to do like that temporary.. it´s something was done already and I have to continue on that at the moment.. I cannot risk to update it, if something goes wrong.. but I have downloaded the new form-builder, which is the 0.6.4 what do you suggest ? Is it normal that when I go inside Form-Builder/Advanced Settings the "Email Template" text area is empty ?
And yes, below I have the following:
-----------------------------------------------------------------------
Variables For Template
Variable Field Represented
{$sub_form_name} Form Name
{$sub_date} Date of Submission
{$sub_host} Your server
{$sub_source_ip} IP address of person using form
{$sub_url} URL of page containing form
{$fb_version} FormBuilder version
{$TAB} Tab Character
{$______} / {$fld_30} 姓名
{$____________} / {$fld_31} 电子邮箱
{$______} / {$fld_32} 国家
{$____________} / {$fld_33} 反馈意见
Yet another way of accessing field values is via $fieldname_obj, $alias_obj, or $fld_#_obj, where each field is an object containging:
name Field Name
type Field Type
id Internal Field ID
value Human-readable Value
valueArray Array of field value(s)
e.g., you could use "{$fld_1_obj->name} = {$fld_1_obj->value}
Alternate field names can be used interchangeably (especially useful if Smarty is choking on characters outside of ASCII 32-126).
Other fields will be available as you add them to the form.
-----------------------------------------------------------------------
Thanks again!
Re: Formbuilder - name fields in another language
You are right! By default the email template is empty, sorry about that. I'm not at my best today...
I have created the template for you, this is like the one you showed in your first post:
You can style the template pretty easily, below is a typical template i'd use:
You can copy one of the examples to the 'Email Template' textbox, press 'update' and it will work (hopefully
)
I have created the template for you, this is like the one you showed in your first post:
Code: Select all
Feedback from {$sub_url}
{$sub_date}
Name (姓名): {$fld_30}
Email (电子邮箱): {$fld_31}
Country (国家): {$fld_32}
Feedback (反馈意见): {$fld_34}
Code: Select all
{literal}<style type="text/css">
p { font-family:"Arial";font-size:11px; }
table { width:400px;font-family:"Arial";font-size:12px;border:1px solid #a0a0a0; }
tr { margin: 3px 0 5px 0; }
.bg { width:130px;background-color:#E0E0E0; }
</style>{/literal}
<p>
Feedback recieved on {$sub_date} via {$sub_url} ({$sub_source_ip})
</p>
<table>
<tr>
<td class="bg">姓名:</td>
<td>{$fld_30}</td>
</tr>
<tr>
<td class="bg">电子邮箱:</td>
<td>{$fld_31}</td>
</tr>
<tr>
<td class="bg">国家:</td>
<td>{$fld_32}</td>
</table>
<br />
<table>
<tr>
<td>{$fld_34}</td>
</tr>
</table>

Make your community a better place!
Re: Formbuilder - name fields in another language
Hi M@rtijn,
thanks for you help. I figured out where the problem was.. While I am still not used to the CMS system, I tought there was something strange with IE.. then I switched to Firefox (which I was already using before crashing so many times..) and I noticed that those fields (email template etc..) I was actually seeing empty and not writable on IE, were now properly working on firefox.. so I managed to edit them, and now everything is working fine! Anyway thanks again for your support!
Probably I will ask you something again in the near future!
Best!
thanks for you help. I figured out where the problem was.. While I am still not used to the CMS system, I tought there was something strange with IE.. then I switched to Firefox (which I was already using before crashing so many times..) and I noticed that those fields (email template etc..) I was actually seeing empty and not writable on IE, were now properly working on firefox.. so I managed to edit them, and now everything is working fine! Anyway thanks again for your support!

Best!