Values in email template when using custom element

amorpeth 27 May, 2011
Hey,

I have a custom element named "template" and would like to include the results in my email template. I have included the tag {template} in my email template but it is not working.

This is the code that I am using in the custom element:

<table width="80%" border="0" cellspacing="5" cellpadding="5">
  <tr>
    <td><input type="radio" name="Wedding Praise" value="Wedding Praise"> {modal url=http://demotemplates.joomlashack.com/wedding|width=600|height=400}Wedding Praise{/modal}</td>
	<td><input type="radio" name="Wedding Praise" value="Wedding Praise"> {modal url=http://demotemplates.joomlashack.com/wedding|width=600|height=400}Wedding Praise{/modal}</td>
    <td><input type="radio" name="Wedding Praise" value="Wedding Praise"> {modal url=http://demotemplates.joomlashack.com/wedding|width=600|height=400}Wedding Praise{/modal}</td>
  </tr>
  <tr>
    <td><img src="images/templates/amusing.png" /></td>
    <td><img src="images/templates/amusing.png" /></td>
    <td><img src="images/templates/amusing.png" /></td>
  </tr>
  <tr>
    <td><input type="radio" name="Wedding Praise" value="Wedding Praise"> {modal url=http://demotemplates.joomlashack.com/wedding|width=600|height=400}Wedding Praise{/modal}</td>
	<td><input type="radio" name="Wedding Praise" value="Wedding Praise"> {modal url=http://demotemplates.joomlashack.com/wedding|width=600|height=400}Wedding Praise{/modal}</td>
    <td><input type="radio" name="Wedding Praise" value="Wedding Praise"> {modal url=http://demotemplates.joomlashack.com/wedding|width=600|height=400}Wedding Praise{/modal}</td>
  </tr>
  <tr>
    <td><img src="images/templates/amusing.png" /></td>
    <td><img src="images/templates/amusing.png" /></td>
    <td><img src="images/templates/amusing.png" /></td>
  </tr>
</table>


Will this work or do I need to modify the HTML code?

Thanks,
Andrew
GreyHead 28 May, 2011
Hi Andrew,

The actual inputs in there are all like this
<input type="radio" name="Wedding Praise" value="Wedding Praise">
The name needs to be changed to remove the space and the vlues should be different if you want to know which radio button was selected.
<input type="radio" name="wedding_praise" value="Wedding Praise 1">
Then you can use {wedding_praise} in the template.

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