Hi, i'm new, i love chronoforms and i have used with all forms into my company site.
Now i'm building an online configurator, something simple:
10 question pages, with a final result page.
I have buildt all i need but now i have a little problem.
How can i show in the result page the results ?!? i try to explain better.
depending on the choices I make in my steps must result in a product, question are every the same, so if i choose YES into a question, the final result are PRODUCT 001.
I bought and read CF CookBook, it's simple and very interesting with a lot of examples, i try out the example in multipage capter, with <?php echo $posted['product']; ?>, great solution but not for my case.
Anyone have a suggestion for me ? Sorry for my poor english and thanks in advance.
francesco
Now i'm building an online configurator, something simple:
10 question pages, with a final result page.
I have buildt all i need but now i have a little problem.
How can i show in the result page the results ?!? i try to explain better.
depending on the choices I make in my steps must result in a product, question are every the same, so if i choose YES into a question, the final result are PRODUCT 001.
I bought and read CF CookBook, it's simple and very interesting with a lot of examples, i try out the example in multipage capter, with <?php echo $posted['product']; ?>, great solution but not for my case.
Anyone have a suggestion for me ? Sorry for my poor english and thanks in advance.
francesco
Hi francesco,
I'm not clear how you get the final product name. Probably the final form needs some custom PHP to look up the information you need?
Bob
PS 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.
Bob
I'm not clear how you get the final product name. Probably the final form needs some custom PHP to look up the information you need?
Bob
PS 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.
Bob
hi greyhead, sorry for delay... yes, i have create a custom php for final form, so i can
have some information about products.
Simply, i put this code for every products i have in the final form:
Now i have two problem:
1- how can i send this information (the final form) via email ? i must save info into database ? if yes, i can i do this ? I have this problem because items aren't saved into database but created "on fly" into the final form.
2- my multiform actually have a little bug. System tell me: You must provide at least one recipient e-mail address. But i have configurated email send and dynamic email, what's happen ?
thanks for gently and reponse in advance... sorry for my poor english.
francesco
have some information about products.
Simply, i put this code for every products i have in the final form:
<?php
if($posted['radio0'] == 'YES'){echo ' <tr><td><label for="1">PRODUCT CODE AND NAME</label></td>
</tr>';}
Now i have two problem:
1- how can i send this information (the final form) via email ? i must save info into database ? if yes, i can i do this ? I have this problem because items aren't saved into database but created "on fly" into the final form.
2- my multiform actually have a little bug. System tell me: You must provide at least one recipient e-mail address. But i have configurated email send and dynamic email, what's happen ?
thanks for gently and reponse in advance... sorry for my poor english.
francesco
...ups, forget the version of CF🙂
running J!1.5, CF version: 3.2
thanks
francesco
running J!1.5, CF version: 3.2
thanks
francesco
Hi francesco,
It's probably simplest to add the same PHP into the Email template.
From the information you've posted I can't tell what the problem with Email sending it. Please try turning Debug on and checking the debug results to see exactly what information is being used.
Bob
It's probably simplest to add the same PHP into the Email template.
From the information you've posted I can't tell what the problem with Email sending it. Please try turning Debug on and checking the debug results to see exactly what information is being used.
Bob
ok, i'll try to put php into email template... this custom php generate an error like:
Illegal variable _files or _env or _get or _post...etc.
Ok, debug activated, here we are results🙂
---
You must provide at least one recipient e-mail address.
E-mail message
From: CRMVILLAGE [info@xxxxxxxxxx.biz]
To:
CC:
BCC:
Subject: Preventivo on-line CRMVILLAGE
Submitted by 192.168.1.133
Files:
E-mail message
From: CRMVILLAGE [info@xxxxxxxxxx.biz]
To: [email]francesco.villani@xxxxxxxxxx.biz[/email]
CC:
BCC:
Subject: Preventivo on-line CRMVILLAGE
Submitted by 192.168.1.133
Files:
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [name_prev] => ccccccc [surname_prev] => ccccccccccc [company_prev] => ccccccccccc [tel_prev] => 04504854 [email_prev] => [email]mario.rossi@rossi.it[/email] [province_prev] => BZ [button_invia] => INVIA RICHIESTA [cfformstep] => [ba4294c799df6785589f9c89b37e4d5a] => 1 [1cf1] => aa0db713939f3ebd923e88b79a7b3908 [chronoformname] => matrigna )
$_FILES Array: Array ( )
Form passed the plugins step (if enabled) OK
An email has been SENT successfully from (CRMVILLAGE)info@xxxxxxxxxx.biz to
An email has been SENT successfully from (CRMVILLAGE)info@xxxxxxxxxx.biz to [email]francesco.villani@xxxxxxxxxx.biz[/email]
Debug End
---
I have change real domain with xxxxxxxxxx for show here, but there is real domain into my form.
thanks in advance
francesco
Illegal variable _files or _env or _get or _post...etc.
Ok, debug activated, here we are results🙂
---
You must provide at least one recipient e-mail address.
E-mail message
From: CRMVILLAGE [info@xxxxxxxxxx.biz]
To:
CC:
BCC:
Subject: Preventivo on-line CRMVILLAGE
Submitted by 192.168.1.133
Files:
E-mail message
From: CRMVILLAGE [info@xxxxxxxxxx.biz]
To: [email]francesco.villani@xxxxxxxxxx.biz[/email]
CC:
BCC:
Subject: Preventivo on-line CRMVILLAGE
Submitted by 192.168.1.133
Files:
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [name_prev] => ccccccc [surname_prev] => ccccccccccc [company_prev] => ccccccccccc [tel_prev] => 04504854 [email_prev] => [email]mario.rossi@rossi.it[/email] [province_prev] => BZ [button_invia] => INVIA RICHIESTA [cfformstep] => [ba4294c799df6785589f9c89b37e4d5a] => 1 [1cf1] => aa0db713939f3ebd923e88b79a7b3908 [chronoformname] => matrigna )
$_FILES Array: Array ( )
Form passed the plugins step (if enabled) OK
An email has been SENT successfully from (CRMVILLAGE)info@xxxxxxxxxx.biz to
An email has been SENT successfully from (CRMVILLAGE)info@xxxxxxxxxx.biz to [email]francesco.villani@xxxxxxxxxx.biz[/email]
Debug End
---
I have change real domain with xxxxxxxxxx for show here, but there is real domain into my form.
thanks in advance
francesco
i tryed to put custom php into template email using "curly brackets".
So i transformed this:
into this:
but editor re-arrange php and transform my code into this:
sigh! :?
where i'm wrong ?
francesco
So i transformed this:
<?php
if($posted['radio0'] == 'SI'){echo '<label for="1">cod.111 CRMVILLAGE VTE STD</label>';}
?>
into this:
<?php
if(isset($from->data['radio0]) && $form->data['radio0'] == 'SI')
{echo ' <label for="1">'.cod.111 CRMVILLAGE VTE STD.'</label>;}?>
but editor re-arrange php and transform my code into this:
<p>if(isset($from->data['radio0]) && $form->data['radio0'] == 'SI') {echo ' <label for="1">'.$form->data['radio0'].'</label>;}</p>
sigh! :?
where i'm wrong ?
francesco
Hi franesco,
You have to turn off the HTML editor to use PHP in the Email template. Click the Add/Remove Editor link to remove it.
Bob
You have to turn off the HTML editor to use PHP in the Email template. Click the Add/Remove Editor link to remove it.
Bob
Hi francesco,
Sorry that's in CFv4. In CFv3 it's in the Email Setup Properties box.
Bob
PS I'm getting confused as there is another Franceso with a thread about emails in CFv4.
Sorry that's in CFv4. In CFv3 it's in the Email Setup Properties box.
Bob
PS I'm getting confused as there is another Franceso with a thread about emails in CFv4.
yessssssssssss🙂 found it!
now put all my mods together and send you a final feedback🙂
thanks for now🙂
francesco
now put all my mods together and send you a final feedback🙂
thanks for now🙂
francesco
This topic is locked and no more replies can be posted.