Forums

customized email send by chronoforms ?

Rose-N 04 May, 2009
Hello,
one question to customize email sent by chronoforms

nota : I'm using Chronoform 3.1RC4.11 on joomla 1.5.10

in Email templates (generated automatically), I have some checkboxes of my form, like that
Title:
{namecheckbox1} textcheckbox1
{namecheckbox2} textcheckbox2
{namecheckbox3} textcheckbox3
{namecheckbox3} textcheckbox3
{namecheckbox3} other {nametextfield}

when receiving the email
I got :
textcheckbox1
on textcheckbox2
textcheckbox3
textcheckbox3
other

the on is only when the box was checked.
but it isn't clear

I'd like to have only the text of the checkbox when it is on

can I and if yes how can I put some php codes ?

in short : can I put directly
<?php if namecheckbox1 echo textbox1; ?>


thanx in advance...
GreyHead 04 May, 2009
Hi Rose-N,

In your Form HTML give your text boxes meaningful values instead of 'on' and give every input in the group the same array name like name='checkboxes[]'

In your Email template write
Title: {checkboxes}

Bob
Rose-N 04 May, 2009
fantastic ! it works !
thanx for your answer...
why thinking difficult when simple things can be done !!!!
This topic is locked and no more replies can be posted.