View Full Version : Changing
A Sound Design
10-05-2009, 12:58 AM
Now that I have designed a form and connected it to my form processor how do I change the details that are sent in the e-mail? The code that is generated is like:
<input id="form_name_shared_group_Mobile_Number" name="form_name_shared_group_Mobile_Number" type="text" value="" class="formTextfield_Large" tabindex="9" />
This gets sent to me in an email like:
form_name_shared_group_Home_Number (01234)12324567
When the form name is quite long it's even harder to read. I can change this to something shorter by editing the form fields in Code View but whenever I edit the form using CSS Form Builder it changes everything back again once it is saved. This is really annoying.
Jimmy Wu
10-05-2009, 11:27 AM
Instead of modifying the form to be changed, you can modify how the email is sent. Instead of sending the form element name, you can put in your own descriptive label and just send the value of the form element with that label?
A Sound Design
10-06-2009, 07:09 AM
How do I do that? I find that I can only do something like that in Code View in DW, but as soon as I use Form Builder again any manual changes are overwritten.
Jimmy Wu
10-07-2009, 01:28 PM
How are you sending your emails out? In your email template, instead of using the form field names, you can write out text to describe the field. For example, instead of having the email send:
<Form field name>: <form field contents>
which will send this:
form_name_shared_group_Home_Number (01234)12324567
have the email send:
Home Number: <form field contents>
which will send this:
Home Number: (01234)12324567
If you could explain how you're creating the email to be sent, I could better instruct you on how to get that email sent out correctly.
A Sound Design
10-07-2009, 02:27 PM
Thanks for replying. I've just realised that I have the Universal Email extension. Could I use that for sending the form's contents? Isn't that what it's for?
Jimmy Wu
10-07-2009, 02:50 PM
Yes, you can use Universal email to send the form contents. There is a tutorial on how to send form contents using Universal Email in the support section of our site:
http://www.webassist.com/support/universal-email/
You can find it under Solution Recipes.
A Sound Design
10-08-2009, 06:29 PM
Thanks for your reply Jimmy. I have started using Universal Email, posting the form to the same page as the form is on. It's getting better but not quite right yet.
With UE (Plain Text) it now sends as:
Form Name Contact Details Name: Jeremy
How can I get it so that it just sends as
Name: Jeremy
?
I have not touched the code in Code View. Instead I doing all changes in UE and Form Builder. In your previous post you said:
"How are you sending your emails out? In your email template, instead of using the form field names, you can write out text to describe the field. For example, instead of having the email send:
<Form field name>: <form field contents>
which will send this:
form_name_shared_group_Home_Number (01234)12324567
have the email send:
Home Number: <form field contents>
which will send this:
Home Number: (01234)12324567"
How do I accomplish this in the email template in UE? I followed the tutorial and added the PHP code
<?php foreach( $_POST as $pkey => $pval ) { ?>
<?php echo (str_replace("_"," ",$pkey).": ".($pval))?>
<?php } ?>
This gives the output in e-mail like:
Form Name Contact Details Name: Jeremy
Please can you advise me how I can get this like "Name: Jeremy" using UE and FormBuilder. Thanks.
Jimmy Wu
10-09-2009, 06:35 PM
When editing your email body using the Universal Email, you will want to just type in:
Name:
and then select the form element using the lightning bolt.
I have attached a screen shot of how I did this.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.