Which type of price Quote you need ? Type 1 , Type 2 , Type 3 , Type 4 , Say I have 4 types of codes placed in a file array. eg: code array : I have a standard email reply template in which I want to change a small section where the code is placed. For example if Type 2 is selected the code 2 should be placed in the email template and if Type 3 is selected code 3 should be placed in the template and so on.I do not know how to go about this could I get some lead..ThanksRon"> How can I modify the email reply template ? - Forums

Forums

How can I modify the email reply template ?

Ron 29 Feb, 2012
Hello,
I have a form which has a choice to select from the radio buttons. I want to send a reply as per the choice made. The form is as follows:
  <div id="widget">
   <table class="test"> 

   <table width="100%" border="0" cellspacing="1" cellpadding="4">

	                        
<tr>
				  <td width="299" align="left" valign="middle" class="">Your full Name:</td>

					<td><input size="42" required="true" name="fullname" id="fullname" type="text" /></td>
				</tr>
				<tr>
				  <td width="299" align="left" valign="middle" class="">Address 1:</td>
					<td><input size="42" required="true" name="address1" id="address1" type="text" /></td>
				</tr>
				<tr>
				  <td width="299" align="left" valign="middle" class="">Address 2:</td>

					<td><input size="42" required="true" name="address2" id="address2" type="text" /></td>
				</tr>
				<tr>
				  <td width="299" align="left" valign="middle" class="">Your City:</td>
					<td><input size="42" required="true" name="city" id="city" type="text" /></td>
				</tr>
				<tr>
				  <td width="299" align="left" valign="middle" class="">Postal (Zip) Code:</td>

					<td><input size="25" required="true" name="zip" id="zip" type="text" /></td>
				</tr>
				<tr>
				  <td width="299" align="left" valign="middle" class="">Email Address:</td>
					<td><input size="35" required="true" name="email" id="email" type="text" /></td>
				</tr>               
				<tr>
                 <td width="299" align="left" valign="middle" class="">Need a call from us? Your phone number:</td>
					<td><input size="35"  name="phone" id="phone" type="text" /></td>
				</tr> 
                <tr>
				  <td width="299" align="left" valign="middle" class=""><strong>Telephone call from us can help.</strong></td>
					<td><input value="Price Quote for cyz" size="35" class=" validate['required']" name="subject" id="subject" type="hidden" /></td>
				</tr>
                                <tr>
				  <td width="299" align="left" valign="middle" class=""></td>
					<td><input value="<?php echo date("d-m-Y")?>" size="35" class=" validate['required']" name="date" id="date" type="hidden" /></td>
				</tr>
                                <tr>
				  <td width="299" align="left" valign="middle" class=""><b>Which type of price Quote you need ?</b></td>
					<td> 
				      <input type="radio" name="code1" id="code1" value="code1" />Type 1 , 
                      <input type="radio" name="code2" id="code2" value="code2" />Type 2 ,
                      <input type="radio" name="code3" id="code3" value="code3" />Type 3 ,
                      <input type="radio" name="code4" id="code4" value="code4" />Type 4 ,
                      
 </td>
				</tr                                               
                ><tr>
				  <td width="299" align="left" valign="middle" class=""><input value="Submit " class="submitbtn" name="submit" type="submit" id="submit" /></p>
</td>
					<td></td>
				</tr>
                
                                
   </table>

Say I have 4 types of codes placed in a file array. eg:

code array :
<php _code 1 ?>
<php _code 2 ?>
<php _code 3 ?>
<php _code 4 ?>

I have a standard email reply template in which I want to change a small section where the code is placed. For example if Type 2 is selected the code 2 should be placed in the email template and if Type 3 is selected code 3 should be placed in the template and so on.
I do not know how to go about this could I get some lead..
Thanks
Ron
GreyHead 29 Feb, 2012
Hi Ron,

Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6/1.7/2.5.

In CFv3 I'd use PHP in the Email template.

In CFv4 I'd use my Event Switcher [GH] action and put an different Email action in each event.

Bob
Ron 29 Feb, 2012
Thanks Bob,

I am using the version 4 of Chronoforms on Joomla 1.7.3. I did not understand what you ment:

In CFv4 I'd use my Event Switcher [GH] action and put an different Email action in each event.



Please be more specific to this ignorant on php.

Ron
GreyHead 29 Feb, 2012
Hi Ron,

You can get the Event Switcher [GH] action here - very little PHP required.

Bob
Ron 29 Feb, 2012
Bob !

😶 I've done it !!

You can get the Event Switcher [GH] action here - very little PHP required.



🤔 But I am lost.. Please help.

Ron
This topic is locked and no more replies can be posted.