Forums

chrono setting

marceff 07 Dec, 2012
Hi,

I set up html template in events/email as follow:

<table border="0" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>First name</strong></td>
<td>{First_name}</td>
</tr>
<tr>
<td><strong>Last name</strong></td>
<td>{Last_name}</td>
</tr>
<tr>
<td><strong>Company</strong></td>
<td>{Company}</td>
</tr>
<tr>
<td><strong>Address</strong></td>
<td>{Address}</td>
</tr>
<tr>
<td><strong>City</strong></td>
<td>{City}</td>
</tr>
<tr>
<td><strong>Country</strong></td>
<td>{input_select_21}</td>
</tr>
<tr>
<td><strong>Post code</strong></td>
<td>{Post_code}</td>
</tr>
<tr>
<td><strong>E-mail</strong></td>
<td>{email_address}</td>
</tr>
<tr>
<td><strong>Phone</strong></td>
<td>{phone}</td>
</tr>
<tr>
<td><strong>Mobile</strong></td>
<td>{mobile}</td>
</tr>
<tr>
<td><strong>Choise for visit</strong></td>
<td>{input_checkbox_group_26}</td>
</tr>
<tr>
<td><Visit date</strong></td>
<td>{input_datetime_27}</td>
</tr>
<tr>
<td><strong>Message</strong></td>
<td>{message}</td>
</tr>
<tr>
<td><Privacy</strong></td>
<td>{input_radio_29}</td>
</tr>
</tbody>
</table>


and I receive back the following:

First name	pinco
Last name	palla
Company	lamia
Address	via pincoPalla 12
City	Rome
Country	AN
Post code	00258
E-mail	mail@studiografico.info
Phone	0032154789
Mobile	
Choise for visit	array ( 0 => 'choice1', )🤨 
    🤨      2012-12-26
Message	uyuiyuityui
      🤨    Yes


as you can see, the choise "Choise for visit" comes out with a "strange" result (it should show the text after the equal sign: choise 1= I wish your dedicated staff to pay me a visit which I set in the preview/checkboxes element)
The label Date is not showed (see html) as well as the Privacy label.
Would you please help me to find out why?
One more request: can you explain the setting to send Thanks message to user?

Thank you for help
GreyHead 07 Dec, 2012
Hi marceff,

You have some typos in your HTML in these two lines:
<td><Visit date</strong></td>
. . .
<td><Privacy</strong></td>


You need to use a Handle array action to handle the arrays returned by a Checkbox group. This will still only return the values of the checkboxes though, not their labels if that is what you want here. To return the labels you need to add a Custom code box to convert the values back to the label text.

Bob
marceff 07 Dec, 2012
Hi Bob,
thank you for your kind replay.
Please forgive me for my lack of understanding, but as far as concerns the checkboxes "choise 1/choise2" I do get the label "Choise for a visit" but not its value, for which I should use Handle action array (which would be: array (0 => 'Choice1', )? where do I place it?) while receiving labels "Date" and "private" (instead of which I get the values) should add a code (which one?) to Custon code box.
Is that right? Could you give me a little more help with the codes and handle array action?
thanks again
marceff 07 Dec, 2012
I solved the problems, but I still have doubts about the thanks message.
I read your tuotorial and other posts as well, but I could not understand:
1) thanks message is sent to the user email?
2) or appears on the monitor immediately after he clicks submit?
In event / show thanks message, in the code window I wrote the message and I also added the email field in curly brackets {email_address} but nothing happens. The result, however, is that any messages of thanks appear neither monitor or email.
Would you please send me a hint?
GreyHead 07 Dec, 2012
Hi Marceff,

You get to choose. You can send the user a thank you mail using the Email action (there's a video FAQ if you need to know how); and/or you can show a Thank You message after the form is submitted using the Show Thanks Page action. This should display after the form is submitted . . . *unless* you have some action that is redirecting the user to another page.

Bob
marceff 07 Dec, 2012
Hi Bob,
thank you for your replay.
I think I should be able to see the thanks message if I simulate the form sending. If so, then I can tell you that is not working at all, as I do note see anything right after having selected the submit button. I placed the event and wrote the message, if this is the only thing to do, then something else is not running properly and for sure I did not redirect nobody to anywhere!

Hope you can help me, thank you
GreyHead 07 Dec, 2012
Hi marceff,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
marceff 07 Dec, 2012
Here is the file Bob, hope it helps
GreyHead 07 Dec, 2012
Hi Marceff,

You have an Event Loop action at the end of the On Submit event which is re-loading the form. This needs to be in the pink On Fail event of the Check Captcha action.

And the Check Captcha action should be the first action in the ON Submit event so that it traps errors before the DB Save and Email actions.

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